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:
@@ -3554,18 +3554,13 @@ bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
|
|||||||
|
|
||||||
#if wxUSE_CONTROLS && !defined(__WXUNIVERSAL__)
|
#if wxUSE_CONTROLS && !defined(__WXUNIVERSAL__)
|
||||||
|
|
||||||
wxControl *item = wxDynamicCast
|
|
||||||
(
|
|
||||||
FindItem(id),
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_OWNER_DRAWN
|
||||||
wxControl
|
wxControl *item = wxDynamicCast(FindItem(id), wxControl);
|
||||||
#else // !wxUSE_OWNER_DRAWN
|
#else // !wxUSE_OWNER_DRAWN
|
||||||
// we may still have owner-drawn buttons internally
|
// we may still have owner-drawn buttons internally because we have to make
|
||||||
// because we have to make them owner-drawn to support
|
// them owner-drawn to support colour change
|
||||||
// colour change
|
wxControl *item = wxDynamicCast(FindItem(id), wxButton);
|
||||||
wxButton
|
|
||||||
#endif // USE_OWNER_DRAWN
|
#endif // USE_OWNER_DRAWN
|
||||||
);
|
|
||||||
|
|
||||||
if ( item )
|
if ( item )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user