From: Vadim Zeitlin Date: Thu, 19 Jun 2003 09:43:19 +0000 (+0000) Subject: wxUniv compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9f522551db907c2776e7eeda60341019579d242a wxUniv compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index e1d9ce5965..fa2afaca08 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -3424,11 +3424,14 @@ bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct) #if wxUSE_CONTROLS - wxWindow *item = FindItem(id); #if wxUSE_OWNER_DRAWN + wxWindow *item = FindItem(id); if ( item && item->IsKindOf(CLASSINFO(wxControl)) ) return ((wxControl *)item)->MSWOnDraw(itemStruct); -#else +#elif !defined(__WXUNIVERSAL__) + // we may still have owner-drawn buttons internally because we have to make + // them owner-drawn to support colour change + wxWindow *item = FindItem(id); if ( item && item->IsKindOf(CLASSINFO(wxButton)) ) return ((wxButton *)item)->MSWOnDraw(itemStruct); #endif // USE_OWNER_DRAWN