Redefine wxTRANSPARENT_WINDOW as 0 and stop using it

This style never did anything useful in wxMSW and did nothing at all in
all the other ports, so always was rather useless, but became actively
harmful not that WS_EX_COMPOSITED is used in wxMSW because using it and
WS_EX_TRANSPARENT, enabled by wxTRANSPARENT_WINDOW, together doesn't
work and results in an endless stream of WM_PAINT messages being sent to
the _siblings_ of the window with wxTRANSPARENT_WINDOW style.
This commit is contained in:
Vadim Zeitlin 2022-11-28 18:52:52 +00:00
parent a4ebfbb773
commit 20bbc43a20
39 changed files with 19 additions and 46 deletions

View file

@ -1399,7 +1399,7 @@ wxALLOW_COMBINING_ENUMS(wxSizerFlagBits, wxStretch)
| | | | | | | | | | | | | | \____ wxPOPUP_WINDOW
| | | | | | | | | | | | | \_______ wxWANTS_CHARS
| | | | | | | | | | | | \__________ wxTAB_TRAVERSAL
| | | | | | | | | | | \_____________ wxTRANSPARENT_WINDOW
| | | | | | | | | | | \_____________ (ex-wxTRANSPARENT_WINDOW)
| | | | | | | | | | \________________ wxBORDER_NONE
| | | | | | | | | \___________________ wxCLIP_CHILDREN
| | | | | | | | \______________________ wxALWAYS_SHOW_SB
@ -1456,7 +1456,8 @@ wxALLOW_COMBINING_ENUMS(wxSizerFlagBits, wxStretch)
/* for subwindows/controls */
#define wxCLIP_SIBLINGS 0x20000000
#define wxTRANSPARENT_WINDOW 0x00100000
/* This style is obsolete and doesn't do anything. */
#define wxTRANSPARENT_WINDOW 0
/* Add this style to a panel to get tab traversal working outside of dialogs */
/* (on by default for wxPanel, wxDialog, wxScrolledWindow) */
@ -1489,7 +1490,7 @@ wxALLOW_COMBINING_ENUMS(wxSizerFlagBits, wxStretch)
*/
#define wxWINDOW_STYLE_MASK \
(wxVSCROLL|wxHSCROLL|wxBORDER_MASK|wxALWAYS_SHOW_SB|wxCLIP_CHILDREN| \
wxCLIP_SIBLINGS|wxTRANSPARENT_WINDOW|wxTAB_TRAVERSAL|wxWANTS_CHARS| \
wxCLIP_SIBLINGS|wxTAB_TRAVERSAL|wxWANTS_CHARS| \
wxRETAINED|wxPOPUP_WINDOW|wxFULL_REPAINT_ON_RESIZE)
/*