wxUniv compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3424,11 +3424,14 @@ bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
|
|||||||
|
|
||||||
#if wxUSE_CONTROLS
|
#if wxUSE_CONTROLS
|
||||||
|
|
||||||
wxWindow *item = FindItem(id);
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_OWNER_DRAWN
|
||||||
|
wxWindow *item = FindItem(id);
|
||||||
if ( item && item->IsKindOf(CLASSINFO(wxControl)) )
|
if ( item && item->IsKindOf(CLASSINFO(wxControl)) )
|
||||||
return ((wxControl *)item)->MSWOnDraw(itemStruct);
|
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)) )
|
if ( item && item->IsKindOf(CLASSINFO(wxButton)) )
|
||||||
return ((wxButton *)item)->MSWOnDraw(itemStruct);
|
return ((wxButton *)item)->MSWOnDraw(itemStruct);
|
||||||
#endif // USE_OWNER_DRAWN
|
#endif // USE_OWNER_DRAWN
|
||||||
|
Reference in New Issue
Block a user