Print Page | Close Window

CXTPStatusBar not always receiving WM_LBUTTONDOWN

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13447
Printed Date: 28 February 2025 at 8:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPStatusBar not always receiving WM_LBUTTONDOWN
Posted By: trunkmonkey
Subject: CXTPStatusBar not always receiving WM_LBUTTONDOWN
Date Posted: 18 February 2009 at 5:10pm
We're using Xtreme Toolkit Pro v.10.42(?)

I opened the StatusBar sample project that came with the toolkit, derived CMyStatusBar from CXTPStatusBar, and added the WM_LBUTTONDOWN handler. This would call CXTPStatusBar::HitTest and pop up a message box telling which pane was clicked.

For some panes it worked (like the CAnimateCtrl), but for others (like the CXTPStatusBarIconPane) the status bar doesn't receive the message. I'm just wondering if anyone has an idea as to why that is. I thought perhaps CXTPStatusBarIconPane was already handling the message, but I looked at CXTPStatusBarIconPane and its parents up to CWnd and don't see anyone already fielding it.

Thanks in advance.


Stephen





Replies:
Posted By: Oleg
Date Posted: 19 February 2009 at 2:57am
Hi,
 
Because CXTPStatusBarIconPane is spearate window. you need override it instead.... it was reason why CXTPStatusBarIconPane  was removed in some older release.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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