Coloring the PropertySheet
-
Is there a way to make text(or background) color of only single items different without using owner draw? For example I would like to paint all items with negative values red. If there isn't a way to do it whitout owner draw, how do you do it with it? Thanx, Goran Dodig
-
Is there a way to make text(or background) color of only single items different without using owner draw? For example I would like to paint all items with negative values red. If there isn't a way to do it whitout owner draw, how do you do it with it? Thanx, Goran Dodig
Hi do something like HBRUSH CMyDlg::OnCtlColor(CDC *pDC, CWND *pWnd, UINT nCtl) { if (CTLCOLOR_STATIC == nCtl) // or CTLCOLOR_EDIT { int i = GetDlgItemInt(pWnd->GetCtrlID()); if (0 > i) pDC->SetTextColor(RGB(255, 0, 0)); ) return CDialog::OnCtlColor(pDC, pWnd, nCtl); }