给对话框整个面板设置背景颜色的方法

来源:互联网 发布:文史类杂志 知乎 编辑:程序博客网 时间:2024/04/29 15:46

OnPaint()函数的else中,写上:

CRect      rc;

GetClientRect(&rc);   //获取客户区

CPaintDCdc(this);

 dc.FillSolidRect(&rc, RGB(0, 160, 0));

0 0
原创粉丝点击