pc++;
Title << wxT('&');
}
- else
+ else
Title << wxT('~');
}
// else if (*pc == wxT('/'))
m_text = TextToLabel(rText);
m_isCheckable = bCheckable;
m_help = rStrHelp;
+ memset(&m_vMenuData, '\0', sizeof(m_vMenuData));
+ m_vMenuData.id= nId;
} // end of wxMenuItem::wxMenuItem
wxMenuItem::~wxMenuItem()
return label;
}
-// accelerators
-// ------------
-
-#if wxUSE_ACCEL
-
-wxAcceleratorEntry *wxMenuItem::GetAccel() const
-{
- return wxGetAccelFromString(GetText());
-}
-
-#endif // wxUSE_ACCEL
-
// change item state
// -----------------
bOk = (bool)::WinSendMsg( GetHMenuOf(m_parentMenu)
,MM_SETITEMATTR
,MPFROM2SHORT(GetRealId(), TRUE)
- ,MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED)
+ ,MPFROM2SHORT(MIA_DISABLED, FALSE)
);
else
bOk = (bool)::WinSendMsg( GetHMenuOf(m_parentMenu)
,MM_SETITEMATTR
,MPFROM2SHORT(GetRealId(), TRUE)
- ,MPFROM2SHORT(MIA_DISABLED, FALSE)
+ ,MPFROM2SHORT(MIA_DISABLED, MIA_DISABLED)
);
if (!bOk)
{
);
if (!bOk)
{
- wxLogLastError("EnableMenuItem");
+ wxLogLastError("CheckMenuItem");
}
wxMenuItemBase::Check(bCheck);
} // end of wxMenuItem::Check