[wxWidgets/wxWidgets] 3fc3a3: Add wxWindow::MSWGetBorderThickness()

0 views
Skip to first unread message

Steve Cornett

unread,
Jun 10, 2026, 12:04:41 PM (16 hours ago) Jun 10
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: 3fc3a33f589c636b4f651613f667562fbdf3c9ef
https://github.com/wxWidgets/wxWidgets/commit/3fc3a33f589c636b4f651613f667562fbdf3c9ef
Author: Steve Cornett <21205494...@users.noreply.github.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M include/wx/msw/window.h
M src/msw/window.cpp

Log Message:
-----------
Add wxWindow::MSWGetBorderThickness()

This function is more convenient to use in MSW-specific code than
GetWindowBorderSize() as it returns the size of a single border and so
doesn't require the caller to divide the return value by 2.

No real changes.

See #26571.


Commit: a36ff353aa11c9e96d5aeac175f5ecc60d8f56d5
https://github.com/wxWidgets/wxWidgets/commit/a36ff353aa11c9e96d5aeac175f5ecc60d8f56d5
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M include/wx/msw/uxtheme.h
M src/msw/uxtheme.cpp

Log Message:
-----------
Take wxWindowMSW parameter in wxUxThemeHandle ctor

We don't need wxUniv wxWindow deriving from wxWindowMSW in that build
configuration here, just wxWindowMSW is enough and avoids the need to
cast wxWindowMSW pointers to wxWindow ones in wxUniv/MSW build.


Commit: 8a573dd7e7fd4188cae418b959340ad01a65f7fa
https://github.com/wxWidgets/wxWidgets/commit/8a573dd7e7fd4188cae418b959340ad01a65f7fa
Author: Steve Cornett <21205494...@users.noreply.github.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M src/msw/textctrl.cpp
M src/msw/window.cpp

Log Message:
-----------
Improve handling of the borders in MSW dark mode

For Windows dark mode, draw themed borders instead of translating
wxBORDER_THEME to wxBORDER_SIMPLE. Borders have the same thickness
between light mode and dark mode for consistent alignment and
positioning. See #26529.

In dark mode, the border styles wxBORDER_STATIC, wxBORDER_RAISED and
wxBORDER_SUNKEN are sometimes drawn by the system using light mode
colours. So draw these borders similarly to themed borders, but using
the proper width. There is no attempt to mimic a raised or sunken look.

The WM_NCCALCSIZE and WM_NCPAINT message handling is simplified and
corrected for calculating the border width.

Closes #26571.


Commit: fa884fc074d4df85e95ea1ae59c6c1574e46f1be
https://github.com/wxWidgets/wxWidgets/commit/fa884fc074d4df85e95ea1ae59c6c1574e46f1be
Author: ryancog <17038122...@users.noreply.github.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M src/osx/cocoa/utils.mm

Log Message:
-----------
wxOSX: perform cleanup when applicationWillTerminate: is called

Make wxOSX behaviour more similar to wxMSW and ensure that
wxApp::OnExit() is called even when the application is being shut down
unconditionally.

Closes #26542.


Commit: de11441324834acca4d700db3c6ab5a09c43cd24
https://github.com/wxWidgets/wxWidgets/commit/de11441324834acca4d700db3c6ab5a09c43cd24
Author: Steve Cornett <21205494...@users.noreply.github.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)

Changed paths:
M src/msw/choice.cpp

Log Message:
-----------
Fix wxChoice/wxComboBox popup border in MSW dark mode

This was broken by 5bd892f7ac (Fix dark mode selection in list controls
in latest Windows 11, 2026-05-31) which styled the entire list as scroll
bar which was wrong.

Use "DarkMode_DarkTheme" instead of "Explorer" to make the list appear
correctly both under Windows 10 and 11.

Closes #26573.

Closes #26574.


Compare: https://github.com/wxWidgets/wxWidgets/compare/f12b247d26b6...de1144132483

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages