wxwidgets/include/wx/msw
Vadim Zeitlin cb85871831 Add MSWShouldUseAutoDarkMode() and use it for wxSpinButton
This control doesn't seem to support dark mode natively, whichever theme
is used for it, so paint it in dark mode ourselves simply by inverting
its colours -- this is not great, but passable and better than leaving
it with a light background.

As this probably won't be the only control which will need this,
implement it at wxWindow level and allow the derived classes to opt-in
this "automatic dark mode support" by simply overriding the new
MSWShouldUseAutoDarkMode() function.
2022-12-25 19:45:52 +00:00
..
ole Use [[nodiscard]] with functions returning object to be freed 2022-11-09 18:59:44 +01:00
private Add MSWShouldUseAutoDarkMode() and use it for wxSpinButton 2022-12-25 19:45:52 +00:00
rt Fix inconsistent use of boolean and HRESULT 2020-05-06 01:52:24 +02:00
wrl Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
accel.h
anybutton.h Remove Windows XP and Vista support 2022-11-12 16:57:52 +00:00
app.h Start adding dark mode support to wxMSW 2022-12-08 00:15:18 +00:00
appprogress.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
apptbase.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
apptrait.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
bitmap.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
blank.cur
bmpbuttn.h Allow using wxBitmapBundle for wxButton bitmaps 2021-10-18 11:50:10 +02:00
bmpcbox.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
brush.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
bullseye.cur
button.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
calctrl.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
caret.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
cdrom.ico
checkbox.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
checklst.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
child.ico
chkconf.h Always use wxDynamicLibrary in wxMSW and remove checks for it 2022-12-04 02:12:22 +00:00
choice.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
clipbrd.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
colordlg.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
colour.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
colours.bmp
combo.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
combobox.h Remove Windows XP and Vista support 2022-11-12 16:57:52 +00:00
commandlinkbutton.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
computer.ico
control.h Add support for using custom theme class in dark mode 2022-12-25 19:45:52 +00:00
crashrpt.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
cross.cur
csquery.bmp
ctrlsub.h
cursor.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
custombgwin.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
datectrl.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
datetimectrl.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
dc.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
dcclient.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
dcmemory.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
dcprint.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
dcscreen.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
dde.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
debughlp.h Remove UNICODE build option, hardcode its value as 1 2022-10-27 19:43:59 +02:00
dialog.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
dib.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
dirdlg.h Remove Windows XP and Vista support 2022-11-12 16:57:52 +00:00
dragimag.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
drive.ico
enhmeta.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
evtloop.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
evtloopconsole.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
fdrepdlg.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
file1.ico
filedlg.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
floppy.ico
folder1.ico
folder2.ico
font.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
fontdlg.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
frame.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
fswatcher.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
gauge.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
gccpriv.h Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
gdiimage.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
genrcdefs.h Add MSW manifests for ARM and ARM64 platforms 2019-11-22 15:17:40 +01:00
glcanvas.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
hand.cur
headerctrl.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
helpbest.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
helpchm.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
helpwin.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
htmlhelp.h Remove tests for _UNICODE too 2022-10-27 19:43:30 +02:00
hyperlink.h Work around Wine bug with font handling in SysLink control 2022-12-04 00:44:09 +01:00
icon.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
imaglist.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
iniconf.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
init.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
joystick.h Don’t use void for functions without arguments 2019-10-02 00:54:14 +02:00
libraries.h
listbox.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
listctrl.h Merge branch 'nullptr' 2022-10-18 18:34:07 +02:00
magnif1.cur
mdi.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
mdi.ico
menu.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
menuitem.h Factor out wxMenuItem::GetMenuTextExtent() helper 2022-11-10 13:44:37 +00:00
metafile.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
mfc.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
mimetype.h Fix spelling in comments and documentation using codespell 2020-06-27 22:56:22 +02:00
minifram.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
missing.h Remove UNICODE build option, hardcode its value as 1 2022-10-27 19:43:59 +02:00
msgdlg.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
msvcrt.h Require MSVS 2015+ and remove checks for earlier versions 2022-10-11 00:02:29 +02:00
nonownedwnd.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
notebook.h Add wxNotebook::GetTabRect() to retrieve the tab position 2022-11-10 16:43:43 +01:00
ownerdrawnbutton.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
ownerdrw.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
palette.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
pbrush.cur
pen.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
pencil.cur
pntleft.cur
pntright.cur
popupwin.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
printdlg.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
printwin.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
private.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
progdlg.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
question.ico
radiobox.h Revert "Remove wxStaticBox custom drawing code entirely" 2022-11-28 19:04:59 +00:00
radiobut.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
rcdefs.h Add MSW manifests for ARM and ARM64 platforms 2019-11-22 15:17:40 +01:00
regconf.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
region.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
registry.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
removble.ico
richmsgdlg.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
roller.cur
scrolbar.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
seh.h Remove BCC-specific conditionally compiled code 2020-10-13 18:40:31 +02:00
setup.h Always use wxDynamicLibrary in wxMSW and remove checks for it 2022-12-04 02:12:22 +00:00
setup_inc.h Require MSVS 2015+ and remove checks for earlier versions 2022-10-11 00:02:29 +02:00
slider.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
sound.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
spinbutt.h Add MSWShouldUseAutoDarkMode() and use it for wxSpinButton 2022-12-25 19:45:52 +00:00
spinctrl.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
stackwalk.h Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
statbmp.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
statbox.h Revert "Remove wxStaticBox custom drawing code entirely" 2022-11-28 19:04:59 +00:00
statline.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
stattext.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
statusbar.h Add support for using custom theme class in dark mode 2022-12-25 19:45:52 +00:00
std.ico
stdpaths.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
subwin.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
taskbar.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
taskbarbutton.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
textctrl.h Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
textentry.h Always use wxDynamicLibrary in wxMSW and remove checks for it 2022-12-04 02:12:22 +00:00
tglbtn.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
timectrl.h Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
toolbar.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
tooltip.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
toplevel.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
treectrl.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
uxtheme.h Remove wxUxThemeFont, it is useless now 2022-10-27 19:43:30 +02:00
webview_edge.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
webview_ie.h Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
webviewhistoryitem_ie.h Apply suggestions from code review 2020-01-16 10:15:11 +01:00
window.h Add MSWShouldUseAutoDarkMode() and use it for wxSpinButton 2022-12-25 19:45:52 +00:00
winundef.h Remove tests for _UNICODE too 2022-10-27 19:43:30 +02:00
winver.h
wrapcctl.h Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
wrapcdlg.h
wrapgdip.h
wrapshl.h
wrapwin.h Don't include <winsock2.h> when wxUSE_SOCKETS==0 2022-03-29 16:44:52 -07:00
wx.manifest Simplify Windows application manifests 2021-12-17 16:57:45 +01:00
wx.rc Revert changes to the code generating the manifest name in wx.rc 2021-12-18 21:50:15 +01:00
wx_dpi_aware.manifest Simplify Windows application manifests 2021-12-17 16:57:45 +01:00
wx_dpi_aware_pmv2.manifest Simplify Windows application manifests 2021-12-17 16:57:45 +01:00