Solved

Message throw CProperySheet to a CView

Posted on 1998-08-02
1
251 Views
Last Modified: 2013-11-19
Hi!

Why do I not gett a message (WM_LBUTTONDBLCLK) throw to my View?????

In the dialogbox I have added a TabCtrl and in the CView:: OnInitialUpdate() I am creating the CMyPropertySheet like this:

      m_pObjektSheet = new CObjektPropertySheet(this);
      CWnd* pwndHolder = GetDlgItem(IDC_TAB_OBJEKT);
      if (!m_pObjektSheet->Create( pwndHolder, WS_CHILD | WS_VISIBLE, 0))
      {
            delete m_pObjektSheet;
            m_pObjektSheet = NULL;
            return;
      }

Thanks in advance!

Bertil Morefält
0
Comment
Question by:morefalt
1 Comment
 
LVL 1

Accepted Solution

by:
rlarner earned 50 total points
ID: 1320078
Hrmm... I don't see how you want this code to work.  Which dialog item are you getting from GetDlgItem???  If you are calling this in your _CView_ derived class, I would be fairly sure that you are getting back null from GetDlgItem, and thus the parent of your object sheet is being set to the main frame instead of the CView window like you want.  Try instead to make the call:
//...
if (!m_pObjektSheet->Create( this, WS_CHILD | WS_VISIBLE, 0))
//...                        ^^^^

I am still not sure of exactly what you are trying to accomplish here... a double-click WHERE is not being sent to the CView?  If this does not solve your problem, a little more verbose description might help.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 30
iSeries DB2 Query 2 83
Best tools for Backup and restore of Wordpress site 6 53
sumNumber challenge 16 98
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now