Mercurial > dwindows
changeset 1982:c35b68443905
Win: Remove notebook subclass, it looks like we need to go full owner
draw to support dark mode, and I am not up for that right now.
Same with the menubar, does not seem to be dark modeable without
completely replacing it.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 13 Aug 2019 19:34:27 +0000 |
parents | ccd34ec31971 |
children | 59146d14e21e |
files | win/dw.c |
diffstat | 1 files changed, 1 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/win/dw.c Tue Aug 13 09:12:05 2019 +0000 +++ b/win/dw.c Tue Aug 13 19:34:27 2019 +0000 @@ -3423,26 +3423,6 @@ return _simplewndproc(hWnd, msg, mp1, mp2); } -LRESULT CALLBACK _notebookwndproc(HWND hWnd, UINT msg, WPARAM mp1, LPARAM mp2) -{ -#ifdef AEROGLASS - if(msg == WM_ERASEBKGND) - { - if(_DW_DARK_MODE_ALLOWED == 2 && _DW_DARK_MODE_SUPPORTED) - { - HDC hdc; - RECT rc; - - hdc=(HDC)mp1; - GetClientRect(hWnd, &rc); - FillRect(hdc, &rc, _DW_GetSysColorBrush(COLOR_3DFACE)); - return (LRESULT)TRUE; - } - } -#endif - return _simplewndproc(hWnd, msg, mp1, mp2); -} - void _changebox(Box *thisbox, int percent, int type) { int z; @@ -5796,7 +5776,7 @@ DWInstance, NULL); cinfo->fore = cinfo->back = -1; - cinfo->pOldProc = SubclassWindow(tmp, _notebookwndproc); + cinfo->pOldProc = SubclassWindow(tmp, _simplewndproc); SetWindowLongPtr(tmp, GWLP_USERDATA, (LONG_PTR)cinfo); dw_window_set_data(tmp, "_dw_array", (void *)array); dw_window_set_font(tmp, DefaultFont);