X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/837e57436a89516a5fa9f478f401e06bd872c17c..26b833297883b4cbfdc9fd09d9882efe16f13f97:/src/msw/menuitem.cpp diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index 76fa0af2d9..f40498487b 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -33,10 +33,10 @@ #include "wx/bitmap.h" #include "wx/settings.h" #include "wx/font.h" + #include "wx/window.h" #include "wx/accel.h" #include "wx/menu.h" #include "wx/string.h" - #include "wx/window.h" #endif #include "wx/ownerdrw.h" @@ -87,7 +87,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, int id, #endif //owner drawn m_strHelp(strHelp) { - wxASSERT_MSG( pParentMenu != NULL, _T("a menu item should have a parent") ); + wxASSERT_MSG( pParentMenu != NULL, wxT("a menu item should have a parent") ); #if wxUSE_OWNER_DRAWN // set default menu colors @@ -151,7 +151,7 @@ void wxMenuItem::Enable(bool bDoEnable) void wxMenuItem::Check(bool bDoCheck) { - wxCHECK_RET( IsCheckable(), _T("only checkable items may be checked") ); + wxCHECK_RET( IsCheckable(), wxT("only checkable items may be checked") ); if ( m_bChecked != bDoCheck ) { long rc = CheckMenuItem(GetHMenuOf(m_pParentMenu), @@ -208,9 +208,9 @@ void wxMenuItem::SetName(const wxString& strName) if ( ::ModifyMenu(hMenu, id, MF_BYCOMMAND | flagsOld, - id, data) == 0xFFFFFFFF ) + id, data) == (int)0xFFFFFFFF ) { - wxLogLastError(_T("ModifyMenu")); + wxLogLastError(wxT("ModifyMenu")); } } }