Refresh the window when its layout direction changes in wxMSW.
Rearrange the window children and/or redraw its contents when its layout direction changes. See #15031. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f1950d1111
commit
d35c8954d6
@ -1159,6 +1159,11 @@ void wxWindowMSW::SetLayoutDirection(wxLayoutDirection dir)
|
||||
if ( styleNew != styleOld )
|
||||
{
|
||||
wxSetWindowExStyle(this, styleNew);
|
||||
|
||||
// Update layout: whether we have children or are drawing something, we
|
||||
// need to redo it with the new layout.
|
||||
SendSizeEvent();
|
||||
Refresh();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user