diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 3bc63109eb..117141a4ea 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -713,7 +713,7 @@ bool wxWindowMSW::MSWEnableHWND(WXHWND hWnd, bool enable) if ( !enable && ::GetFocus() == hWnd ) Navigate(); - return ::EnableWindow(hWnd, (BOOL)enable); + return ::EnableWindow(hWnd, (BOOL)enable) != 0; } bool wxWindowMSW::Show(bool show)