From: Vadim Zeitlin Date: Mon, 23 Jul 2012 15:03:47 +0000 (+0000) Subject: Fix wxWindow::MSWShowWithEffect() compilation with wxUSE_DYNLIB_CLASS==0. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3ae670cd59711e19ed3c65dc7fd7fff102d52b69 Fix wxWindow::MSWShowWithEffect() compilation with wxUSE_DYNLIB_CLASS==0. Fall back to just plain Show() if wxDynamicLibrary, which we use to get function not existing in all Windows versions, is not available. Closes #14509. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 441e258415..34e2e2bb4f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -670,6 +670,7 @@ wxWindowMSW::MSWShowWithEffect(bool show, wxShowEffect effect, unsigned timeout) { +#if wxUSE_DYNLIB_CLASS if ( effect == wxSHOW_EFFECT_NONE ) return Show(show); @@ -766,6 +767,9 @@ wxWindowMSW::MSWShowWithEffect(bool show, } return true; +#else // wxUSE_DYNLIB_CLASS + return Show(show); +#endif } // Raise the window to the top of the Z order