摘要: 以下为具体的实现方法:加入一个新类,类名:CMyButton,基类:CButton。在头文件 MyButton.h 中加入以下变量和函数定义:private:intm_Style;//按钮形状(0-正常,1-当前,2-按下,3-锁定)BOOLb_InRect;//鼠标进入标志CStringm_strText;//按钮文字COLORREFm_ForeColor;//文本颜色COLORREFm_BackColor;//背景色COLORREFm_LockForeColor;//锁定按钮的文字颜色CRectm_ButRect;//按钮尺寸CFont*p_Font;//字体voidDrawButton( 阅读全文
posted @ 2013-12-11 16:07 hhj_321 阅读(1294) 评论(0) 推荐(0) 编辑