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:
Vadim Zeitlin
2003-06-19 09:43:19 +00:00
parent 1997b8ba19
commit 9f522551db

View File

@@ -3424,11 +3424,14 @@ bool wxWindowMSW::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
#if wxUSE_CONTROLS
wxWindow *item = FindItem(id);
#if wxUSE_OWNER_DRAWN
wxWindow *item = FindItem(id);
if ( item && item->IsKindOf(CLASSINFO(wxControl)) )
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)) )
return ((wxButton *)item)->MSWOnDraw(itemStruct);
#endif // USE_OWNER_DRAWN