mfc控件 check box
来源:互联网 发布:谷歌浏览器for mac 编辑:程序博客网 时间:2024/04/25 20:59
在界面设计中,我们经常会用到Check Box这个控件,Check Box 的使用方法与Radio Button 的用法相似,但比它要简单得多。
一、设定Check Box为 选中状态
((CButton*)GetDlgItem(ID号))->SetCheck(TRUE);
(SetCheck(FALSE)) 为不选中,如果想初始化为选中状态,则在InitDlg函数中加入下面这段语句。
( (CButton*)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);
二、检查Check Box是否为选中状态
可使用GetCheck()这个函数,如下:
if(BST_CHECKED==((CButton*)GetDlgItem(IDC_RADIO1))->GetCheck()) 判断是否选中;
if(BST_UNCHECKED==((CButton*)GetDlgItem(IDC_RADIO3))->GetCheck()) 判断是否未选中。
0 0
- mfc控件 check box
- MFC常用控件编程之Check Box
- MFC Check Box控件的用法
- MFC check box控件的几种用法
- VS2010/MFC 入门编程十六(Check Box控件使用)
- MFC控件使用01-------Check Box/Edit Control
- MFC中控件的使用-------Check Box、Edit Control
- VC控件 Check Box
- [MFC] Check Box 复选框
- MFC控件使用说明(combo box Button Check Box Radio Button List Control Edit Box Hot Key IP Address....)
- MFC控件使用说明(combo box Button Check Box Radio Button List Control Edit Box Hot Key IP Address)
- MFC控件使用说明(combo box Button Check Box Radio Button List Control Edit Box Hot Key IP Address....)
- MFC控件使用说明(combo box Button Check Box Radio Button List Control Edit Box Hot Key IP Address....)
- MFC控件使用说明(combo box Button Check Box Radio Button List Control Edit Box Hot Key IP Address....)
- MFC控件Combo Box
- MFC--按钮(radio button,check box)
- VC中MFC check box的用法
- VC中MFC check box的用法
- Linux下直接读键盘
- 关于ADS1292R的一些总结
- 关于CSpreadSheet的若干问题
- Windows输入汉字
- android基础教材
- mfc控件 check box
- Matlab中的随机数生成器
- android ImageView src background
- Android_listview设置每条信息的间距
- 递归算法
- 文章标题
- 关闭AlertDialog.Builder对话框
- android selector背景选择器
- libcurl programming tutorial