主题:Visual studio 2003中对话框的背景怎么改变
Visual studio 2003中对话框的背景怎么改变?
HBRUSH Cjm::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(nCtlColor==CTLCOLOR_DLG)
{
return m_Brush;
}
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
return hbr;
}
用这个函数行嘛,为什么没反应?急急急,就高手解答,非常感谢!
HBRUSH Cjm::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(nCtlColor==CTLCOLOR_DLG)
{
return m_Brush;
}
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
return hbr;
}
用这个函数行嘛,为什么没反应?急急急,就高手解答,非常感谢!