Disabled the WM_CTLCOLORxxx handler for now.
This commit is contained in:
parent
d4245a448d
commit
4e56f2d2b5
|
@ -90,18 +90,18 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
||||||
if (control != NULL && IsChild(initialParent, control) == 0)
|
if (control != NULL && IsChild(initialParent, control) == 0)
|
||||||
return SendMessageW(control, msgNOTIFY, wParam, lParam);
|
return SendMessageW(control, msgNOTIFY, wParam, lParam);
|
||||||
break;
|
break;
|
||||||
case WM_CTLCOLORSTATIC:
|
/* case WM_CTLCOLORSTATIC:
|
||||||
case WM_CTLCOLORBTN:
|
case WM_CTLCOLORBTN:
|
||||||
/*TODO // read-only TextFields and Textboxes are exempt
|
/*TODO // read-only TextFields and Textboxes are exempt
|
||||||
// this is because read-only edit controls count under WM_CTLCOLORSTATIC
|
// this is because read-only edit controls count under WM_CTLCOLORSTATIC
|
||||||
if (windowClassOf((HWND) lParam, L"edit", NULL) == 0)
|
if (windowClassOf((HWND) lParam, L"edit", NULL) == 0)
|
||||||
if (textfieldReadOnly((HWND) lParam))
|
if (textfieldReadOnly((HWND) lParam))
|
||||||
return DefWindowProcW(hwnd, uMsg, wParam, 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()");
|
logLastError("error setting transparent background mode to controls in parentWndProc()");
|
||||||
// paintControlBackground((HWND) lParam, (HDC) wParam);
|
// paintControlBackground((HWND) lParam, (HDC) wParam);
|
||||||
return (LRESULT) hollowBrush;
|
return (LRESULT) hollowBrush;
|
||||||
|
*/
|
||||||
// these are only run if c is not NULL
|
// these are only run if c is not NULL
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
if ((wp->flags & SWP_NOSIZE) != 0)
|
if ((wp->flags & SWP_NOSIZE) != 0)
|
||||||
|
|
Loading…
Reference in New Issue