Mercurial > dwindows
comparison win/dw.c @ 1972:8e650172d8cf
Win: Add AllowDarkModeForWindow() to _dw_box_pack() internal function so widgets packed into live (alread shown) windows also get the dark mode flag set.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 06 Aug 2019 18:25:21 +0000 |
parents | 8cf330e1e331 |
children | 69d0b37082d0 |
comparison
equal
deleted
inserted
replaced
1971:d39f4f9bed26 | 1972:8e650172d8cf |
---|---|
7228 if(thisitem) | 7228 if(thisitem) |
7229 free(thisitem); | 7229 free(thisitem); |
7230 | 7230 |
7231 thisbox->count++; | 7231 thisbox->count++; |
7232 | 7232 |
7233 #ifdef AEROGLASS | |
7234 AllowDarkModeForWindow(item, _DW_DARK_MODE_ENABLED); | |
7235 #endif | |
7233 SetParent(item, box); | 7236 SetParent(item, box); |
7234 if(_tcsnicmp(tmpbuf, UPDOWN_CLASS, _tcslen(UPDOWN_CLASS)+1)==0) | 7237 if(_tcsnicmp(tmpbuf, UPDOWN_CLASS, _tcslen(UPDOWN_CLASS)+1)==0) |
7235 { | 7238 { |
7236 ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(item, GWLP_USERDATA); | 7239 ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(item, GWLP_USERDATA); |
7237 | 7240 |