Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Markup and CXTPDockingPane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup and CXTPDockingPane

 Post Reply Post Reply
Author
Message
Slamma View Drop Down
Newbie
Newbie


Joined: 22 August 2008
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slamma Quote  Post ReplyReply Direct Link To This Post Topic: Markup and CXTPDockingPane
    Posted: 22 August 2008 at 3:04am

I've got a simple object that subclasses CWnd and also inherits from CXTPMarkupContext:

class CMarkupWindow: public CWnd , public CXTPMarkupContext

It simply creates & draws markup similar to how MarkupPadView.cpp does it.  

Now, I'm assuming I need to pass windows messages like LBUTTONDOWN, MOUSEMOUSE, etc. to the markup via CXTPMarkupContext::OnWndMsg() so that the markup actually responds to user input.

The problem:  When I define and use OnWndMsg() in my class it's not getting any mouse events when it's attached to a CXTPDockingPane.  It appears that the CXTPDockingPane is eating them when I log windows messages via spy++.

Do I need to do something different to catch windows messages in my object when it's attached to a docking pane?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2008 at 7:21am
Hi,
 
DockingPane can't eat them.  Maybe you Create window as "STATIC" control and don't add SS_NOTIFY?
 
Show your OnWndMsg code .
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Slamma View Drop Down
Newbie
Newbie


Joined: 22 August 2008
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slamma Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2008 at 1:32pm
Adding SS_NOTIFY solved the problem.  Thanks for the tip, Oleg.  The XAML markup stuff is great.  Looking forward to additional XAML controls and support in future versions.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.