Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio button in toolbar

Status
Not open for further replies.

datapath

Programmer
Feb 20, 2003
11
0
0
BR
Hello,
I would like to have buttons in a toolbar working like radio buttons, when one in the group is pressed, the others are released. I had success already in making them work like checkboxes (hold/release) using this:

tb.SetButtonStyle(0,TBBS_CHECKGROUP);

I have tried to make the radio button using ON_UPDATE_COMMAND_UI, but doesnt work.
Any body has a solution?
Thanks in advance.

PS: the toolbar is in a dialog box.
 
1. any messages from radio will pe passed to your toobar, and maybe to main window, maybe you should subclass your toolbar got get right information
2. I do not know so far how helpful is ON_UPDATE_COMMAND_UI, from buttons you usualy will handle WM_COMMAND (OnCommand in MFC)

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
I am not sure if this is the problem, but I'm gonna try it.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top