Print Page | Close Window

Markup and CXTPDockingPane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=11924
Printed Date: 13 May 2025 at 10:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup and CXTPDockingPane
Posted By: Slamma
Subject: Markup and CXTPDockingPane
Date 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?




Replies:
Posted By: Oleg
Date 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


Posted By: Slamma
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net