]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cmdproc.h
Applied [ 745533 ] implemented wxNotebook::DoGetBestSize
[wxWidgets.git] / include / wx / cmdproc.h
index f059bd5187b2fb86b94452fb538ef0ef14f1fdf8..13523e077e9f57ec0d9cde3d0c8ce6588cb81884 100644 (file)
@@ -19,6 +19,8 @@
 #include "wx/object.h"
 #include "wx/list.h"
 
+class WXDLLEXPORT wxMenu;
+
 // ----------------------------------------------------------------------------
 // wxCommand: a single command capable of performing itself
 // ----------------------------------------------------------------------------
@@ -91,7 +93,7 @@ public:
     wxList& GetCommands() const { return (wxList&) m_commands; }
     wxCommand *GetCurrentCommand() const
     {
-        return (wxCommand *)(m_currentCommand ? m_currentCommand->Data() : NULL);
+        return (wxCommand *)(m_currentCommand ? m_currentCommand->GetData() : NULL);
     }
     int GetMaxCommands() const { return m_maxNoCommands; }
     virtual void ClearCommands();