如何以程序的方式选中特定的单选框?比如有好几个单选按钮,用程序怎么使某一个被选中?
解决方案 »
- 用DirectSound枚举声音设备,在Windows7中枚举不到我的设备
- VC6能调用 C#做的控件吗?
- VC 数据库事务处理
- 急求毕设:网络IP数据包识别和过滤系统的实现
- 关于上下文帮助
- 不经意间,我的信誉分降了一份,想不到我一直守身如玉,到头来还是免不了....
- 如何恢复消息处理函数的名字?
- 高难度的菜单问题!
- 基础问题:ATL类间函数调用问题,怎么在一个自己生成的类中调用控制类中的函数?急!!!
- Don't let the .NET world leave you in the cold. As a C++ developer
- 大家帮我看看,为什么我的进程退不出啊
- 求VC++6.0英文版下载地址
void CheckRadioButton( int nIDFirstButton, int nIDLastButton, int nIDCheckButton );ParametersnIDFirstButtonSpecifies the integer identifier of the first radio button in the group.nIDLastButtonSpecifies the integer identifier of the last radio button in the group.nIDCheckButtonSpecifies the integer identifier of the radio button to be checked.ResSelects (adds a check to) a given radio button in a group and clears (removes a check from) all other radio buttons in the group. The CheckRadioButton function sends aBM_SETCHECK message to the specified radio button.Example// Of the 4 radio buttons, selects radio button 3.
void CMyDlg::OnMarkRadio()
{
CheckRadioButton(IDC_RADIO1, IDC_RADIO4, IDC_RADIO3);
}
我对Radio加了消息处理函数,怎样才能让通过程序选中并执行相应的函数呢?