![]() |
Markup and CXTPDockingPane |
Post Reply
|
| Author | |
Slamma
Newbie
Joined: 22 August 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: Markup and CXTPDockingPanePosted: 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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Slamma
Newbie
Joined: 22 August 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |