From 5528d864b000e02a333170d7fa8a8d0119c9e8e7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Aug 2014 12:44:11 +0000 Subject: [PATCH] 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/branches/WX_3_0_BRANCH@76979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 36624f4f42..70bac7e374 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1145,6 +1145,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 }