1 / 9
文档名称:

VC常用控件.doc

格式:doc   大小:23KB   页数:9页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

VC常用控件.doc

上传人:非学无以广才 2021/1/10 文件大小:23 KB

下载得到文件列表

VC常用控件.doc

相关文档

文档介绍

文档介绍:
.cn   公布者: zkhenry   起源: 网络转载   公布日期: 10月29日   
    *除非尤其说明, 本文中所用控件变量类型为Control
    通常控件可用/不可用
    EnableWindow(TRUE);
    EnableWindow(FALSE);
    1、 Static Text------------静态控件--类CStatic
    取值/赋值(变量类型为Control)
    (string);
    (string);
    2、 Edit Box---------------编辑控件--类CEdit
    取值/赋值
    (string);
    (string);
    3、 Check Box------------复选控件--类CButton
    (1)设置选中/未选中
    (BST_CHECKED);
    (BST_UNCHECKED);
    (2)判定是否选中
    int nCur = ();
    nCur取值为 BST_CHECKED/BST_UNCHECKED。
    4、 Radio Box------------单选控件--类CButton
    (1)默认选中第一项
    (BST_CHECKED);
    (2)选中组中任一项
    CWnd::CheckRadioButton
    Selects (adds a check mark to) a given radio button in a group and clears (removes a check mark from) all other radio buttons in the group.
    void CheckRadioButton(   int nIDFirstButton,   int nIDLastButton,   int nIDCheckButton );
    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.
    nIDCheckButton
    Specifies the integer identifier of the radio button to be checked.
    (3)判定哪一项被选中
    CWnd::GetCheckedRadioButton