Compilation fix for !wxUSE_OWNER_DRAWN.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2013-09-30 17:12:24 +00:00
parent d0b6c0c527
commit be10c7f969

View File

@@ -731,11 +731,13 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
return false; return false;
} }
#if wxUSE_OWNER_DRAWN
if ( makeItemOwnerDrawn ) if ( makeItemOwnerDrawn )
{ {
SetOwnerDrawnMenuItem(GetHmenu(), pos, SetOwnerDrawnMenuItem(GetHmenu(), pos,
reinterpret_cast<ULONG_PTR>(pItem), TRUE); reinterpret_cast<ULONG_PTR>(pItem), TRUE);
} }
#endif
} }