Print Page | Close Window

StatusBarIconPane without CS_DBLCLKS. Why

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=2777
Printed Date: 06 October 2024 at 1:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: StatusBarIconPane without CS_DBLCLKS. Why
Posted By: Stephen12
Subject: StatusBarIconPane without CS_DBLCLKS. Why
Date Posted: 24 August 2005 at 11:22am
In XTPStatusBar.cpp in function CXTPStatusBarBasePane::Create you have a line that registers window class only with CS_BYTEALIGHNCLIENT. This means that framework will not sent WM_LBUTTONDBLCLK message to this window. According to msdn for MFC windows CS_DBLCLKS is a default style, so if there is no reason not to put it there, this is something you can do quickly...

Ideally, you would provide the same mechanism for this type of pane as for the regular status pane. Once user clicks or doubleclicks regular status pane, status bar receives NM_CLICK and NM_DBLCLK notifications where appropriate member of NMMOUSE (dwItemSpec) is set to pane index. IOW, StatusBarIconPane should send WM_NOTIFY to parent with this parameters.

I've also noticed that in majority of your samples you don't even use your CXTPStatusBar class, so is that a way you suggest (if we do that we loose themeing supportCry), but we get tooltips and proper notifications? Is there a plan to make statusbar improvements in near future?

 

Regards

 




Replies:
Posted By: Oleg
Date Posted: 24 August 2005 at 11:46am
For next version it will be enhanced - tooltips/text back color/icons/visible and more.

-------------
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