Solved

Message throw CProperySheet to a CView

Posted on 1998-08-02
1
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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 …
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 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