Howdy Y'all,
Instead of changing an Edit Control's background and text color by responding to the WM_CTLCOLOR message, I tried to do the following:
...While the edit control appears in the appropriate location, the background and text colors are unchanged. Any idea what I'm doing wrong?Code:m_hEditBox = CreateWindow("EDIT",NULL,WS_CHILD|ES_AUTOHSCROLL|ES_AUTOVSCROLL|ES_MULTILINE|ES_WANTRETURN, 100,100,100,100, (HMENU) 1, NULL, NULL); HDC editBoxDC = GetDC(m_hEditBox); SetBkMode(editBoxDC, TRANSPARENT); SetBkColor(editBoxDC, RGB(255,255,0)); SetTextColor(editBoxDC, RGB(0,0,255)); ShowWindow(m_hEditBox,SW_SHOW); ReleaseDC(m_hEditBox, editBoxDC);
-TM




Reply With Quote