From 1384636de076a06388f9267fbd49f3babb38162d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 2 Aug 2003 10:53:03 +0000 Subject: [PATCH] compilation fix for bcc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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 ) { -- 2.50.0