X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..9406d962ccf50d63f163896a2dd94123a2a8664a:/src/msw/menuitem.cpp diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index 8d7d27379b..46625d1a08 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -54,7 +54,7 @@ // ----------- 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 @@ -67,7 +67,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, int id, { wxASSERT( pParentMenu != NULL ); -#ifdef USE_OWNER_DRAWN +#if USE_OWNER_DRAWN // set default menu colors #define SYS_COLOR(c) (wxSystemSettings::GetSystemColour(wxSYS_COLOUR_##c)) @@ -134,7 +134,7 @@ void wxMenuItem::Enable(bool bDoEnable) 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,