Disabled the WM_CTLCOLORxxx handler for now.

This commit is contained in:
Pietro Gagliardi 2015-05-04 22:04:24 -04:00
parent d4245a448d
commit 4e56f2d2b5
1 changed files with 3 additions and 3 deletions

View File

@ -90,18 +90,18 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
if (control != NULL && IsChild(initialParent, control) == 0)
return SendMessageW(control, msgNOTIFY, wParam, lParam);
break;
case WM_CTLCOLORSTATIC:
/* case WM_CTLCOLORSTATIC:
case WM_CTLCOLORBTN:
/*TODO // read-only TextFields and Textboxes are exempt
// this is because read-only edit controls count under WM_CTLCOLORSTATIC
if (windowClassOf((HWND) lParam, L"edit", NULL) == 0)
if (textfieldReadOnly((HWND) lParam))
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
*/ if (SetBkMode((HDC) wParam, TRANSPARENT) == 0)
*//* if (SetBkMode((HDC) wParam, TRANSPARENT) == 0)
logLastError("error setting transparent background mode to controls in parentWndProc()");
// paintControlBackground((HWND) lParam, (HDC) wParam);
return (LRESULT) hollowBrush;
*/
// these are only run if c is not NULL
case WM_WINDOWPOSCHANGED:
if ((wp->flags & SWP_NOSIZE) != 0)