自动变色,右键退出!
效果如下
http://img.my.csdn.net/uploads/201204/11/1334152179_6602.png
http://img.my.csdn.net/uploads/201204/11/1334152179_6028.png一个不规则的窗口,可以自动变色!
但是曾经遇到过变到白色的时候,就不动了!
望大牛帮我看看!
效果如下
http://img.my.csdn.net/uploads/201204/11/1334152179_6602.png
http://img.my.csdn.net/uploads/201204/11/1334152179_6028.png一个不规则的窗口,可以自动变色!
但是曾经遇到过变到白色的时候,就不动了!
望大牛帮我看看!
http://download.csdn.net/detail/k_lord/4218419
The system does not automatically destroy the returned brush. It is the application's responsibility to destroy the brush when it is no longer needed.画刷要自行释放
添加成员HBRUSH m_brush;
CBlDlg::OnInitDialog()里增加m_brush = NULL;
CBlDlg::OnCtlColor里改成
if (m_brush)
{
DeleteObject(m_brush);
}
m_brush = CreateSolidBrush(RGB(i,j,k));
return m_brush;