git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16025
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
pArr->aaccel[i].key = uKey;
pArr->aaccel[i].cmd = uCmd;
}
- pArr->codepage = 437; // default to english Fix???
+ pArr->codepage = 437;
pArr->cAccel = (USHORT)n;
M_ACCELDATA->m_hAccel = ::WinCreateAccelTable( vHabmain
,pArr
const wxString& rsTitle
)
{
- wxString sTitle;
+ wxString sTitle = "";
const wxChar* zPc;
+ if (rsTitle.IsEmpty())
+ return sTitle;
for (zPc = rsTitle.c_str(); *zPc != wxT('\0'); zPc++ )
{
if (*zPc == wxT('&') )
ERRORID vError;
wxString sError;
char zMsg[128];
+
#if wxUSE_ACCEL
UpdateAccel(pItem);
#endif // wxUSE_ACCEL
#endif // owner drawn
{
wxASSERT_MSG(pParentMenu != NULL, wxT("a menu item should have a parent"));
+ memset(&m_vMenuData, '\0', sizeof(m_vMenuData));
+ m_vMenuData.id = (USHORT)nId;
Init();
} // end of wxMenuItem::wxMenuItem