유용한 정보

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

DevReff 2024. 12. 26. 21:14




728x90
반응형

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;
}

출처: https://use1348.tistory.com/36 [유용한 정보:티스토리]