Advertisement

Radio-Buttons in Win32

Started by April 27, 2001 09:53 AM
1 comment, last by SnAkE 23 years, 9 months ago
I want to write a windows-application, but do not know how to get/set the radio-buttons states, without using mfc... Hope someone can help me, thanx SnAkE''s Programming Resources
Set:
  CheckRadioButton(hDlg, IDC_RADIO1, IDC_RADIO100, IDC_RADIO1);  

hDlg is the a handle to the parent.
IDC_RADIO1 is the first control in your group.
IDC_RADIO100 is the last.
And the last parameter in the function call is which control
to set.

Get:
  UINT saywhat = IsDlgButtonChecked(hDlg, IDC_RADIO1);  


saywhat will be one of the following:
BST_CHECKED - checked.
BST_INDETERMINATE - grayed,
BST_UNCHECKED - duh


HTH

Fall Must One:
www.omf.com

Advertisement
Thanx for replying that fast!
Must have forgoten that one... used it myself a few month ago ;-)
Works fine

SnAkE''s Programming Resources

This topic is closed to new replies.

Advertisement