Home > Software engineering >  Ask you a question
Ask you a question

Time:10-07

MFC image automatic correction, the processed image background why is grey, if you want to become the baise needs to be done?

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