if (pWnd->GetDlgCtrlID("Load") == IDC_EDIT1) { // Set the text color to red pDC->SetTextColor(RGB(255, 0, 0)); // Set the background mode for text to transparent // so background will show thru. pDC->SetBkMode(TRANSPARENT); // Return handle to our CBrush object hbr = m_brush; } if (pWnd->GetDlgCtrlID() == IDC_CHECK1) { // Set the text color to red pDC->SetTextColor(RGB(255, 0, 0)); // Set the background mode for text to transparent // so background will show thru. pDC->SetBkMode(TRANSPARENT); DWORD dwStyle = pWnd->GetStyle("Load"); if ( dwStyle &(BS_AUTOCHECKBOX |BS_CHECKBOX) ) // Return handle to our CBrush object hbr = m_brush; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)