Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - StatusBarIconPane without CS_DBLCLKS. Why
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

StatusBarIconPane without CS_DBLCLKS. Why

 Post Reply Post Reply
Author
Message
Stephen12 View Drop Down
Newbie
Newbie


Joined: 20 July 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stephen12 Quote  Post ReplyReply Direct Link To This Post Topic: StatusBarIconPane without CS_DBLCLKS. Why
    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

 



Edited by Stephen12
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.