]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menuitem.cpp
Dialog unit mods; wxProp tidying
[wxWidgets.git] / src / msw / menuitem.cpp
index 8d7d27379b32423dbca876932851f8f5e0d658d9..f7822a730f66148b9ed004bfb9e26bb9eefc46f0 100644 (file)
@@ -38,7 +38,7 @@
 // ----------------------------------------------------------------------------
 
 #if     !defined(USE_SHARED_LIBRARY) || !USE_SHARED_LIBRARY
-#if USE_OWNER_DRAWN
+#if wxUSE_OWNER_DRAWN
   IMPLEMENT_DYNAMIC_CLASS2(wxMenuItem, wxObject, wxOwnerDrawn)
 #else   //!USE_OWNER_DRAWN
   IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxObject)
 // -----------
 
 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
+#if wxUSE_OWNER_DRAWN
                         wxOwnerDrawn(strName, bCheckable),
 #else   //no owner drawn support
                         m_bCheckable(bCheckable),
@@ -67,7 +67,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, int id,
 {
   wxASSERT( pParentMenu != NULL );
 
-#ifdef  USE_OWNER_DRAWN
+#if  wxUSE_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,