1 / 10
文档名称:

VC常用控件.doc

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

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

分享

预览

VC常用控件.doc

上传人:lyd13607 2017/12/18 文件大小:67 KB

下载得到文件列表

VC常用控件.doc

相关文档

文档介绍

文档介绍:
   发布者:zkhenry   来源:网络转载   发布日期:2013年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
    Retrieves the ID of the