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
Solved

Message throw CProperySheet to a CView

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumNumber challenge 16 139
has77  challenge 9 90
Trying to run powershell  in a batch file. How do I do this? 8 106
Capture logon name 13 87
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

860 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