Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
HBRUSH CYourDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
pDC->SetBkMode(TRANSPARENT);
switch(nCtlColor){
case CTLCOLOR_DLG :
case CTLCOLOR_BTN :
case CTLCOLOR_STATIC :
// define your own brush if you want to paint the background
hbr=m_ctlBrush;
// if you want to change only the text color, the brush
// definition is not necessary
SetTextColor(pDC->m_hDC,yourColor);
}
return hbr;
}