Radio Button的使用

假设有五个RadioButton,他们的资源号ID分别为IDC_RADIO1至IDC_RADIO5,对应值为1001至1005

①  设置资源号IDC_RADIO1的Group属性为true

②  初始化:CheckRadioButton(IDC_RADIO1, IDC_RADIO5, IDC_RADIO1);

③  获取结果:int nID = GetCheckedRadioButton(IDC_RADIO1, IDC_RADIO5);

posted @ 2010-09-15 16:29  penink  阅读(134)  评论(0)    收藏  举报