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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio button hide and show

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
Hi,

I have a group of radio buttons which I want to initially have invisible, then if the user selects an option they all appear. I have attached a variable (control ) to the initial radio button then make it visible with the .ShowWindow() command, but the other radio buttons are still hiding?? I cannot attach variables to the others (since they are part of a group??

Any idea what I'm doing wrong?

Thanks
 
You won't really need a variable for the others. Just do this to display them:
GetDlgItem(RADIO_2)->ShowWindow(TRUE);
....
...
..
 
...ShowWindow(SW_SHOW);
...ShowWindow(SW_HIDE);

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top