X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fb5d9e4cfee54c6d55e00b14c8c583285b1063f..46405e36bf9962b251e77e5048e96bf6a54edb15:/src/msw/toplevel.cpp diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index ba45599a81..87508df811 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -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() {