#undef SYS_COLOR
- // we don't want normal items be owner-drawn
+ // setting default colors switched ownerdraw on: switch it off again
ResetOwnerDrawn();
+ // switch ownerdraw back on if using a non default margin
+ if ( GetId() != wxID_SEPARATOR )
+ SetMarginWidth(GetMarginWidth());
+
// tell the owner drawing code to to show the accel string as well
SetAccelString(m_text.AfterFirst(_T('\t')));
#endif // wxUSE_OWNER_DRAWN
GetRealId(),
MF_BYCOMMAND | flags) == (DWORD)-1 )
{
- wxASSERT_MSG( _T("CheckMenuItem() failed, item not in the menu?") );
+ wxFAIL_MSG( _T("CheckMenuItem() failed, item not in the menu?") );
}
}