From: Václav Slavík Date: Sat, 2 Aug 2003 10:53:03 +0000 (+0000) Subject: compilation fix for bcc X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1384636de076a06388f9267fbd49f3babb38162d?ds=inline compilation fix for bcc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 628575ecc0..a451b9a33a 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -3554,18 +3554,13 @@ bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct) #if wxUSE_CONTROLS && !defined(__WXUNIVERSAL__) - wxControl *item = wxDynamicCast - ( - FindItem(id), #if wxUSE_OWNER_DRAWN - wxControl + wxControl *item = wxDynamicCast(FindItem(id), wxControl); #else // !wxUSE_OWNER_DRAWN - // we may still have owner-drawn buttons internally - // because we have to make them owner-drawn to support - // colour change - wxButton + // we may still have owner-drawn buttons internally because we have to make + // them owner-drawn to support colour change + wxControl *item = wxDynamicCast(FindItem(id), wxButton); #endif // USE_OWNER_DRAWN - ); if ( item ) {