]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
Store menus titles in menus themselves in wxOSX.
[wxWidgets.git] / src / msw / toplevel.cpp
index ba45599a81a7112459d0add9482e1c97415c5055..87508df811e6f6aa4f0d3d6939b6f0223e5d2b9d 100644 (file)
@@ -1279,6 +1279,17 @@ bool wxTopLevelWindowMSW::CanSetTransparent()
     return (os_type == wxOS_WINDOWS_NT && ver_major >= 5);
 }
 
+void wxTopLevelWindowMSW::DoEnable(bool enable)
+{
+    wxTopLevelWindowBase::DoEnable(enable);
+
+    // Enabling or disabling a window may change its appearance. Unfortunately,
+    // in at least some situation, toplevel windows don't repaint themselves,
+    // so we have to issue explicit refresh to avoid rendering artifacts.
+    //
+    // TODO: find out just what exactly is wrong here
+    Refresh();
+}
 
 void wxTopLevelWindowMSW::DoFreeze()
 {