Solved

Message throw CProperySheet to a CView

Posted on 1998-08-02
1
269 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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