StatusBarIconPane without CS_DBLCLKS. Why |
Post Reply |
Author | |
Stephen12
Newbie Joined: 20 July 2005 Status: Offline Points: 5 |
Post Options
Thanks(0)
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 support), but we get tooltips and proper notifications? Is there a plan to make statusbar improvements in near future?
Regards
Edited by Stephen12 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
For next version it will be enhanced - tooltips/text back color/icons/visible and more.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |