CodePudding user response:
HBRUSH CSanTanGPSProgectDlg: : OnCtlColor (CDC * pDC, CWnd * pWnd, UINT nCtlColor){
HBRUSH gets=CDialogEx: : OnCtlColor (pDC, pWnd, nCtlColor);
If (pWnd - & gt; GetDlgCtrlID ()==IDC_//change the background color dialog box)
{
PDC - & gt; SetBkMode (TRANSPARENT);
//pDC - & gt; SetBkColor (RGB (0, 0, 0));
//pDC - & gt; SetTextColor (RGB (255, 255, 255));
Return m_brush;//create a brush color custom
}
Return gets;
}