// -----------
wxMenuItem::wxMenuItem(wxMenu *pParentMenu, int id,
- const wxTString& strName, const wxTString& strHelp,
+ const wxString& strName, const wxString& strHelp,
bool bCheckable,
wxMenu *pSubMenu) :
#if USE_OWNER_DRAWN
{
wxASSERT( pParentMenu != NULL );
-#ifdef USE_OWNER_DRAWN
+#if USE_OWNER_DRAWN
// set default menu colors
#define SYS_COLOR(c) (wxSystemSettings::GetSystemColour(wxSYS_COLOUR_##c))
void wxMenuItem::Check(bool bDoCheck)
{
- wxCHECK ( IsCheckable() );
+ wxCHECK_RET( IsCheckable(), "only checkable items may be checked" );
if ( m_bChecked != bDoCheck ) {
CheckMenuItem((HMENU)m_pParentMenu->GetHMenu(), m_idItem,