当前位置:绿色软件下载下载中心其它源码VC/C++源码 → 软件信息
CCheckStatic类
软件类型:源码程序 - 其它源码 - VC/C++源码

软件简介

在对话框中放置一个static box控件。把static box控件声明为CCheckStatic类型的成员变量。这样在static box控件的顶部的左侧就会自动出现一个复选框了。这时选中/不选中这个复选框,控件里面的所有控件将正常/变灰显示。我说的是自动,但是你不要忘记在OnInitDialog中调用Init()方法。 

下面是CCheckStatic类的方法列表: 
void Init(); // Though shalt always call this before using my class. 
int AddItem(int ID); // Adds a control to the custom list 
void ClearItems(); // Empties the custom list 
void SetCheck(BOOL check); // Sets the check state and toggles dialog items

下载地址