Solved

Message throw CProperySheet to a CView

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

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

617 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