diff options
author | George Hazan <ghazan@miranda.im> | 2016-11-25 21:55:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-11-25 21:55:15 +0300 |
commit | 0e63937ce3ec5af17e5fe2acb4d0adb18782ee2a (patch) | |
tree | 0397e6557a7a822a16fc17c1ec2a5ac864d0da90 /src/mir_core | |
parent | 8b145cf934fa86b71223d25583db19880903ef84 (diff) |
WM_CTLCOLORSTATIC handler moved to mir_core.dll
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index f71905f386..960393eba9 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -122,6 +122,16 @@ INT_PTR CDlgBase::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) m_initialized = true;
return TRUE;
+ case WM_CTLCOLOREDIT:
+ case WM_CTLCOLORSTATIC:
+ if (CCtrlBase *ctrl = FindControl(HWND(lParam))) {
+ if (ctrl->m_bUseSystemColors) {
+ SetBkColor((HDC)wParam, GetSysColor(COLOR_WINDOW));
+ return (INT_PTR)GetSysColorBrush(COLOR_WINDOW);
+ }
+ }
+ break;
+
case WM_MEASUREITEM:
{
MEASUREITEMSTRUCT *param = (MEASUREITEMSTRUCT *)lParam;
|