Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Giving states to buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Giving states to buttons

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


Joined: 19 January 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote citygategis Quote  Post ReplyReply Direct Link To This Post Topic: Giving states to buttons
    Posted: 19 January 2006 at 6:39pm

I am just starting with Xtreme. 

How can I create buttons with states.  That is checked or unchecked states.  My app requires tools, such as zoomin or pan.  when one is checked, the others should become unchecked. 

I saw that this can be done using CommandBars_Update event.  However, this seems like a bit of a waste to run many CPU cycles to change state of buttons which are really initiated during an Execute event.

In another word, how can I find all occurrences of a button (menu and tool bar), so I can set the check as needed?

Any and all help would be greatly appreciated.

Back to Top
Ky3bkuHa MaTb View Drop Down
Newbie
Newbie


Joined: 13 March 2006
Location: Russian Federation
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ky3bkuHa MaTb Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2006 at 11:42pm
You need a pointer to button.
Then you may use function GetChekced(), SetChecked().

But function GetChecked() causing crash.
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.109 seconds.