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

Radiobutton and Quit

Status
Not open for further replies.

perolof

Programmer
Aug 18, 2002
10
GB
HI,

I'am new at VC so, can anybody help me with these two questions:

* How do a check in one radio button from the code ?

* How can I quit my dialog window from the code ?

Thanks PerOlof
 
don't exactly know if this is what you mean,
but if you want to set the Radiobutton, declare a
control-variable for this control and use SetCheck() to set it to TRUE or FALSE.
for quitting the dialog box use OnCancel() or SendMessage(WM_CLOSE,...)
Hope this helps
 
Thanks,

The OnCanel() worked, but how do I declare acontrol variable to the radiodutton ?

Thnaks perOlof
 
go to class-wizzard, select member variables then select your control's IDC.
 
okey, but I can not find the control in the member variable window ?
 
in it's properties set it to group.
Now you should see it in class-wizzard.
 
oh, thanks, now it works!

Thank you very much!

perOlof
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top