Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix possible hang after clearing wxTAB_TRAVERSAL style in wxMSW
Clearing this style by calling SetWindowStyleFlag() could reset WS_EX_CONTROLPARENT extended flags bit, breaking the invariant that the parent of any window with this bit set has it as well and resulting in hangs due to infinite loops inside Windows own code iterating over the controls. Prevent this from happening by always preserving this style bit if it was previously set in MSWUpdateStyle(). This is a bit ugly, but there doesn't seem to be any obviously better way to do it. Closes wxWidgets#18091.
- Loading branch information