Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to judge if the commandbars should be update
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to judge if the commandbars should be update

 Post Reply Post Reply
Author
Message
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Topic: How to judge if the commandbars should be update
    Posted: 09 February 2009 at 2:23am
when loadcommandbars(), I hope to judge if the commandbars has been changed, if it's changed, then give me an option to load the new commandbars or still use the old one.

for example: when I change the shortcut key for Copy to Ctrl+C to Alt+W, the program should export a dialog to show these two options when it starts.
Thanks.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 09 February 2009 at 4:49am
Hi,
It always load new commandBars. if you want as option have old one - just don't call LoadCommandBars.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 1:49am
I know what you said now. But tell me how to change the shortcut key.
For example, I didn't set any hot key for copy, but now I hope to set Alt+W for copy, the question is that, even I set Alt+W in my codes, after execute LoadCommands(), the copy still has no hot key. While I need to execute LoadCommands() each time for I need the customized information user sets last time.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 10 February 2009 at 4:17am
Hi,
If you don't call LoadCommandBars do you see Alt+W ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2009 at 2:24am
I could see alt+w if I don't call loadcommandbars(). 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 11 February 2009 at 4:40am

Hi,

if you make major update of GUI just change profile for Load/SaveCommandBars calls:
 
f.e
LoadCommandBars("CommandBars2")
SaveCommandBars("CommandBars2")
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.048 seconds.