git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33863
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxMenuItem *pMenuItem = (wxMenuItem *)(pDrawStruct->itemData);
{
wxMenuItem *pMenuItem = (wxMenuItem *)(pDrawStruct->itemData);
- // see comment before the same test in MSWOnMeasureItem() below
- if ( !pMenuItem )
- return false;
-
- wxCHECK_MSG( wxDynamicCast(pMenuItem, wxMenuItem),
+ wxCHECK_MSG( pMenuItem && pMenuItem->IsKindOf(CLASSINFO(wxMenuItem)),
false, _T("MSWOnDrawItem: bad wxMenuItem pointer") );
// prepare to call OnDrawItem(): notice using of wxDCTemp to prevent
false, _T("MSWOnDrawItem: bad wxMenuItem pointer") );
// prepare to call OnDrawItem(): notice using of wxDCTemp to prevent