Changing background color of dialog
-
How to change the backgound color of a dialog? The function SetDialogBkColor() is obsolete, so it cannot be used.
hey:i can give you some little help HBRUSH CMyTest::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) {if (nCtlColor = CTLCOLOR_STATIC ) { pDC->SetBkColor(RGB(255,0,0)); pDC->SetBkMode(TRANSPARENT); HBRUSH B = CreateSolidBrush(RGB(255,255,0)); return (HBRUSH) B;} } running ok
-
hey:i can give you some little help HBRUSH CMyTest::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) {if (nCtlColor = CTLCOLOR_STATIC ) { pDC->SetBkColor(RGB(255,0,0)); pDC->SetBkMode(TRANSPARENT); HBRUSH B = CreateSolidBrush(RGB(255,255,0)); return (HBRUSH) B;} } running ok
-
hey:i can give you some little help HBRUSH CMyTest::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) {if (nCtlColor = CTLCOLOR_STATIC ) { pDC->SetBkColor(RGB(255,0,0)); pDC->SetBkMode(TRANSPARENT); HBRUSH B = CreateSolidBrush(RGB(255,255,0)); return (HBRUSH) B;} } running ok