怎样判断一组单选按钮的选择有无改变???
请问有什么简单的办法确定一组单选按钮的选择项是否改变?
方法越简单越好,谢谢!
问题点数:10、回复次数:6Top
1 楼lixiaosan(小三)回复于 2004-08-04 15:51:09 得分 0
CWnd::GetCheckedRadioButton
This method retrieves the identifier of the currently checked radio button in the specified group.
int GetCheckedRadioButton(
int nIDFirstButton,
int nIDLastButton );
Parameters
nIDFirstButton
Specifies the integer identifier of the first radio button in the group.
nIDLastButton
Specifies the integer identifier of the last radio button in the group.
Return Value
ID of the checked radio button, or zero if none is selected.
Top
2 楼dongpy(51-->ARM)回复于 2004-08-04 16:02:28 得分 0
To: lixiaosan(小三)
我不是想要得到这组单选按钮被选中的索引值,而是想要得到这组按钮选择项变化的这个信息。
谢谢!Top
3 楼DentistryDoctor(不在无聊中无奈,就在沉默中变态)回复于 2004-08-04 16:49:11 得分 10
ON_CONTROL_RANGE(BN_CLICKED,nIDFirst,nIDLast,msgProc)
注意这组单选按钮的ID应该是连续的。
Top
4 楼dongpy(51-->ARM)回复于 2004-08-05 17:04:47 得分 0
UpTop
5 楼KiGhost()回复于 2004-08-05 17:19:32 得分 0
ON_CONTROL_RANGE(BN_CLICKED,nIDFirst,nIDLast,msgProc)
这一句放在哪里呀??Top
6 楼yening0914(大山)回复于 2004-08-05 17:32:00 得分 0
消息定义中呀,把一个消息选择按钮改为对一组按钮的共同响应!Top




