摘要: MFC的button控件是一个不同于其他控件,其CButtton类是CWnd的一个子类,在修改button的背景、颜色和边框的时候必须自己进行编写一个新的类,如CMyButton。下面是进行背景、颜色、边框修改的步骤:1.在项目->添加类->CMyButton。这样会自动生成两个文件,一个.CPP文... 阅读全文
posted @ 2015-10-12 17:48 时光回眸 阅读(1534) 评论(0) 推荐(0) 编辑
摘要: 画笔一、构造函数画笔有两个构造函数,分别看下:[cpp] view plaincopyprint?Pen(constColor&color,REALwidth);Pen(constBrush*brush,REALwidth);Pen( const Color& color, REAL width);... 阅读全文
posted @ 2015-10-12 16:28 时光回眸 阅读(543) 评论(0) 推荐(0) 编辑