compilation fix for bcc

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-08-02 10:53:03 +00:00
parent b3062afd70
commit 1384636de0

View File

@@ -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 )
{