기본카테고리

[VC++]배경색 변경하기

DevAdd 2010. 3. 11. 17:46




HBRUSH CDownloadDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

// TODO: Change any attributes of the DC here

hbr = CreateSolidBrush(RGB(244,244,244));

// TODO: Return a different brush if the default is not desired
return hbr;
}