]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/treectrl.h
fixed compilation error
[wxWidgets.git] / include / wx / treectrl.h
index 799425a95fe335cb6b22e91a25c42494af899f18..631c3393acc64c4449f1643b60195cd87309802f 100644 (file)
@@ -8,6 +8,27 @@
 #include "wx/control.h"
 #include "wx/event.h"
 
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+// enum for different images associated with a treectrl item
+enum wxTreeItemIcon
+{
+    wxTreeItemIcon_Normal,              // not selected, not expanded
+    wxTreeItemIcon_Selected,            //     selected, not expanded
+    wxTreeItemIcon_Expanded,            // not selected,     expanded
+    wxTreeItemIcon_SelectedExpanded,    //     selected,     expanded
+    wxTreeItemIcon_Max
+};
+
+// tree ctrl default name
+#ifdef __WXMSW__
+    WXDLLEXPORT_DATA(extern const char*) wxTreeCtrlNameStr;
+#else
+    #define wxTreeCtrlNameStr "wxTreeCtrl"
+#endif
+
 // ----------------------------------------------------------------------------
 // include the platform-dependent wxTreeCtrl class
 // ----------------------------------------------------------------------------
 
 class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent
 {
-friend wxTreeCtrl;
+#ifdef __MWERKS__
+    friend class wxTreeCtrl;
+#else
+    friend wxTreeCtrl;
+#endif
+
 public:
     wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);