]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
3f7bc32b | 2 | // Name: wx/msw/treectrl.h |
2bda0e17 KB |
3 | // Purpose: wxTreeCtrl class |
4 | // Author: Julian Smart | |
08b7c251 | 5 | // Modified by: Vadim Zeitlin to be less MSW-specific on 10/10/98 |
2bda0e17 KB |
6 | // Created: 01/02/97 |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart and Markus Holzem | |
08b7c251 | 9 | // Licence: wxWindows license |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_TREECTRL_H_ |
13 | #define _WX_TREECTRL_H_ | |
2bda0e17 | 14 | |
08b7c251 VZ |
15 | // ---------------------------------------------------------------------------- |
16 | // headers | |
17 | // ---------------------------------------------------------------------------- | |
d427503c | 18 | |
2bda0e17 | 19 | #ifdef __GNUG__ |
08b7c251 | 20 | #pragma interface "treectrl.h" |
2bda0e17 KB |
21 | #endif |
22 | ||
1e6feb95 VZ |
23 | #if wxUSE_TREECTRL |
24 | ||
ad5c34f3 | 25 | #include "wx/textctrl.h" |
2899e223 | 26 | #include "wx/dynarray.h" |
484523cf | 27 | #include "wx/treebase.h" |
2bda0e17 | 28 | |
d427503c VZ |
29 | #ifdef __GNUWIN32__ |
30 | // Cygwin windows.h defines these identifiers | |
31 | #undef GetFirstChild | |
32 | #undef GetNextSibling | |
33 | #endif // Cygwin | |
34 | ||
08b7c251 VZ |
35 | // the type for "untyped" data |
36 | typedef long wxDataType; | |
37 | ||
38 | // fwd decl | |
06e38c8e | 39 | class WXDLLEXPORT wxImageList; |
23f681ec | 40 | class WXDLLEXPORT wxDragImage; |
06e38c8e | 41 | struct WXDLLEXPORT wxTreeViewItem; |
08b7c251 VZ |
42 | |
43 | // a callback function used for sorting tree items, it should return -1 if the | |
44 | // first item precedes the second, +1 if the second precedes the first or 0 if | |
45 | // they're equivalent | |
46 | class wxTreeItemData; | |
08b7c251 | 47 | |
08b7c251 VZ |
48 | // NB: all the following flags are for compatbility only and will be removed in the |
49 | // next versions | |
50 | ||
51 | // flags for deprecated `Expand(int action)' | |
52 | enum | |
53 | { | |
2bda0e17 KB |
54 | wxTREE_EXPAND_EXPAND, |
55 | wxTREE_EXPAND_COLLAPSE, | |
56 | wxTREE_EXPAND_COLLAPSE_RESET, | |
57 | wxTREE_EXPAND_TOGGLE | |
58 | }; | |
59 | ||
08b7c251 | 60 | // flags for deprecated InsertItem() variant |
3197ed26 VZ |
61 | #define wxTREE_INSERT_FIRST 0xFFFF0001 |
62 | #define wxTREE_INSERT_LAST 0xFFFF0002 | |
2bda0e17 | 63 | |
08b7c251 VZ |
64 | // ---------------------------------------------------------------------------- |
65 | // wxTreeCtrl | |
66 | // ---------------------------------------------------------------------------- | |
67 | class WXDLLEXPORT wxTreeCtrl : public wxControl | |
2bda0e17 | 68 | { |
092bddef | 69 | public: |
092bddef VZ |
70 | // creation |
71 | // -------- | |
08b7c251 VZ |
72 | wxTreeCtrl() { Init(); } |
73 | ||
74 | wxTreeCtrl(wxWindow *parent, wxWindowID id = -1, | |
75 | const wxPoint& pos = wxDefaultPosition, | |
76 | const wxSize& size = wxDefaultSize, | |
77 | long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, | |
78 | const wxValidator& validator = wxDefaultValidator, | |
2b5f62a0 | 79 | const wxString& name = wxTreeCtrlNameStr) |
092bddef VZ |
80 | { |
81 | Create(parent, id, pos, size, style, validator, name); | |
82 | } | |
08b7c251 VZ |
83 | |
84 | virtual ~wxTreeCtrl(); | |
85 | ||
092bddef VZ |
86 | bool Create(wxWindow *parent, wxWindowID id = -1, |
87 | const wxPoint& pos = wxDefaultPosition, | |
88 | const wxSize& size = wxDefaultSize, | |
08b7c251 | 89 | long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, |
092bddef | 90 | const wxValidator& validator = wxDefaultValidator, |
2b5f62a0 | 91 | const wxString& name = wxTreeCtrlNameStr); |
08b7c251 | 92 | |
092bddef VZ |
93 | // accessors |
94 | // --------- | |
092bddef | 95 | |
08b7c251 VZ |
96 | // get the total number of items in the control |
97 | size_t GetCount() const; | |
98 | ||
99 | // indent is the number of pixels the children are indented relative to | |
100 | // the parents position. SetIndent() also redraws the control | |
101 | // immediately. | |
102 | unsigned int GetIndent() const; | |
103 | void SetIndent(unsigned int indent); | |
104 | ||
74b31181 VZ |
105 | // spacing is the number of pixels between the start and the Text |
106 | // not implemented under wxMSW | |
cf724bce | 107 | unsigned int GetSpacing() const { return 18; } // return wxGTK default |
74b31181 | 108 | void SetSpacing(unsigned int WXUNUSED(spacing)) { } |
cf724bce | 109 | |
08b7c251 VZ |
110 | // image list: these functions allow to associate an image list with |
111 | // the control and retrieve it. Note that the control does _not_ delete | |
112 | // the associated image list when it's deleted in order to allow image | |
113 | // lists to be shared between different controls. | |
114 | // | |
115 | // The normal image list is for the icons which correspond to the | |
116 | // normal tree item state (whether it is selected or not). | |
117 | // Additionally, the application might choose to show a state icon | |
118 | // which corresponds to an app-defined item state (for example, | |
119 | // checked/unchecked) which are taken from the state image list. | |
120 | wxImageList *GetImageList() const; | |
121 | wxImageList *GetStateImageList() const; | |
122 | ||
123 | void SetImageList(wxImageList *imageList); | |
124 | void SetStateImageList(wxImageList *imageList); | |
0377efa2 VS |
125 | void AssignImageList(wxImageList *imageList); |
126 | void AssignStateImageList(wxImageList *imageList); | |
08b7c251 VZ |
127 | |
128 | // Functions to work with tree ctrl items. Unfortunately, they can _not_ be | |
129 | // member functions of wxTreeItem because they must know the tree the item | |
130 | // belongs to for Windows implementation and storing the pointer to | |
131 | // wxTreeCtrl in each wxTreeItem is just too much waste. | |
132 | ||
133 | // accessors | |
134 | // --------- | |
135 | ||
136 | // retrieve items label | |
137 | wxString GetItemText(const wxTreeItemId& item) const; | |
74b31181 VZ |
138 | // get one of the images associated with the item (normal by default) |
139 | int GetItemImage(const wxTreeItemId& item, | |
140 | wxTreeItemIcon which = wxTreeItemIcon_Normal) const; | |
08b7c251 VZ |
141 | // get the data associated with the item |
142 | wxTreeItemData *GetItemData(const wxTreeItemId& item) const; | |
143 | ||
2b5f62a0 VZ |
144 | // get the item's text colour |
145 | wxColour GetItemTextColour(const wxTreeItemId& item) const; | |
146 | ||
147 | // get the item's background colour | |
148 | wxColour GetItemBackgroundColour(const wxTreeItemId& item) const; | |
149 | ||
150 | // get the item's font | |
151 | wxFont GetItemFont(const wxTreeItemId& item) const; | |
152 | ||
08b7c251 VZ |
153 | // modifiers |
154 | // --------- | |
155 | ||
156 | // set items label | |
157 | void SetItemText(const wxTreeItemId& item, const wxString& text); | |
74b31181 VZ |
158 | // get one of the images associated with the item (normal by default) |
159 | void SetItemImage(const wxTreeItemId& item, int image, | |
160 | wxTreeItemIcon which = wxTreeItemIcon_Normal); | |
08b7c251 VZ |
161 | // associate some data with the item |
162 | void SetItemData(const wxTreeItemId& item, wxTreeItemData *data); | |
163 | ||
3a5a2f56 VZ |
164 | // force appearance of [+] button near the item. This is useful to |
165 | // allow the user to expand the items which don't have any children now | |
166 | // - but instead add them only when needed, thus minimizing memory | |
167 | // usage and loading time. | |
168 | void SetItemHasChildren(const wxTreeItemId& item, bool has = TRUE); | |
169 | ||
add28c55 VZ |
170 | // the item will be shown in bold |
171 | void SetItemBold(const wxTreeItemId& item, bool bold = TRUE); | |
172 | ||
58a8ab88 JS |
173 | // the item will be shown with a drop highlight |
174 | void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = TRUE); | |
175 | ||
9ec64fa7 VZ |
176 | // set the items text colour |
177 | void SetItemTextColour(const wxTreeItemId& item, const wxColour& col); | |
178 | ||
179 | // set the items background colour | |
180 | void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col); | |
181 | ||
182 | // set the items font (should be of the same height for all items) | |
183 | void SetItemFont(const wxTreeItemId& item, const wxFont& font); | |
184 | ||
08b7c251 VZ |
185 | // item status inquiries |
186 | // --------------------- | |
187 | ||
188 | // is the item visible (it might be outside the view or not expanded)? | |
189 | bool IsVisible(const wxTreeItemId& item) const; | |
190 | // does the item has any children? | |
191 | bool ItemHasChildren(const wxTreeItemId& item) const; | |
192 | // is the item expanded (only makes sense if HasChildren())? | |
193 | bool IsExpanded(const wxTreeItemId& item) const; | |
194 | // is this item currently selected (the same as has focus)? | |
195 | bool IsSelected(const wxTreeItemId& item) const; | |
add28c55 VZ |
196 | // is item text in bold font? |
197 | bool IsBold(const wxTreeItemId& item) const; | |
08b7c251 | 198 | |
4832f7c0 VZ |
199 | // number of children |
200 | // ------------------ | |
201 | ||
202 | // if 'recursively' is FALSE, only immediate children count, otherwise | |
203 | // the returned number is the number of all items in this branch | |
9dfbf520 VZ |
204 | size_t GetChildrenCount(const wxTreeItemId& item, |
205 | bool recursively = TRUE) const; | |
4832f7c0 | 206 | |
08b7c251 VZ |
207 | // navigation |
208 | // ---------- | |
209 | ||
210 | // wxTreeItemId.IsOk() will return FALSE if there is no such item | |
211 | ||
212 | // get the root tree item | |
213 | wxTreeItemId GetRootItem() const; | |
214 | ||
215 | // get the item currently selected (may return NULL if no selection) | |
216 | wxTreeItemId GetSelection() const; | |
217 | ||
9dfbf520 VZ |
218 | // get the items currently selected, return the number of such item |
219 | // | |
220 | // NB: this operation is expensive and can take a long time for a | |
221 | // control with a lot of items (~ O(number of items)). | |
222 | size_t GetSelections(wxArrayTreeItemIds& selections) const; | |
223 | ||
08b7c251 VZ |
224 | // get the parent of this item (may return NULL if root) |
225 | wxTreeItemId GetParent(const wxTreeItemId& item) const; | |
226 | ||
227 | // for this enumeration function you must pass in a "cookie" parameter | |
228 | // which is opaque for the application but is necessary for the library | |
229 | // to make these functions reentrant (i.e. allow more than one | |
230 | // enumeration on one and the same object simultaneously). Of course, | |
231 | // the "cookie" passed to GetFirstChild() and GetNextChild() should be | |
232 | // the same! | |
233 | ||
234 | // get the first child of this item | |
06e38c8e | 235 | wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& _cookie) const; |
08b7c251 | 236 | // get the next child |
06e38c8e | 237 | wxTreeItemId GetNextChild(const wxTreeItemId& item, long& _cookie) const; |
978f38c2 VZ |
238 | // get the last child of this item - this method doesn't use cookies |
239 | wxTreeItemId GetLastChild(const wxTreeItemId& item) const; | |
08b7c251 VZ |
240 | |
241 | // get the next sibling of this item | |
242 | wxTreeItemId GetNextSibling(const wxTreeItemId& item) const; | |
243 | // get the previous sibling | |
244 | wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const; | |
245 | ||
246 | // get first visible item | |
247 | wxTreeItemId GetFirstVisibleItem() const; | |
248 | // get the next visible item: item must be visible itself! | |
249 | // see IsVisible() and wxTreeCtrl::GetFirstVisibleItem() | |
250 | wxTreeItemId GetNextVisible(const wxTreeItemId& item) const; | |
251 | // get the previous visible item: item must be visible itself! | |
252 | wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const; | |
253 | ||
092bddef VZ |
254 | // operations |
255 | // ---------- | |
08b7c251 VZ |
256 | |
257 | // add the root node to the tree | |
258 | wxTreeItemId AddRoot(const wxString& text, | |
259 | int image = -1, int selectedImage = -1, | |
260 | wxTreeItemData *data = NULL); | |
261 | ||
262 | // insert a new item in as the first child of the parent | |
263 | wxTreeItemId PrependItem(const wxTreeItemId& parent, | |
264 | const wxString& text, | |
265 | int image = -1, int selectedImage = -1, | |
266 | wxTreeItemData *data = NULL); | |
267 | ||
268 | // insert a new item after a given one | |
269 | wxTreeItemId InsertItem(const wxTreeItemId& parent, | |
270 | const wxTreeItemId& idPrevious, | |
271 | const wxString& text, | |
272 | int image = -1, int selectedImage = -1, | |
273 | wxTreeItemData *data = NULL); | |
274 | ||
2ef31e80 VZ |
275 | // insert a new item before the one with the given index |
276 | wxTreeItemId InsertItem(const wxTreeItemId& parent, | |
277 | size_t index, | |
278 | const wxString& text, | |
279 | int image = -1, int selectedImage = -1, | |
280 | wxTreeItemData *data = NULL); | |
281 | ||
08b7c251 VZ |
282 | // insert a new item in as the last child of the parent |
283 | wxTreeItemId AppendItem(const wxTreeItemId& parent, | |
284 | const wxString& text, | |
285 | int image = -1, int selectedImage = -1, | |
286 | wxTreeItemData *data = NULL); | |
287 | ||
288 | // delete this item and associated data if any | |
289 | void Delete(const wxTreeItemId& item); | |
372edb9d VZ |
290 | // delete all children (but don't delete the item itself) |
291 | // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events | |
292 | void DeleteChildren(const wxTreeItemId& item); | |
08b7c251 | 293 | // delete all items from the tree |
372edb9d | 294 | // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events |
08b7c251 VZ |
295 | void DeleteAllItems(); |
296 | ||
297 | // expand this item | |
298 | void Expand(const wxTreeItemId& item); | |
299 | // collapse the item without removing its children | |
300 | void Collapse(const wxTreeItemId& item); | |
301 | // collapse the item and remove all children | |
302 | void CollapseAndReset(const wxTreeItemId& item); | |
303 | // toggles the current state | |
304 | void Toggle(const wxTreeItemId& item); | |
305 | ||
306 | // remove the selection from currently selected item (if any) | |
307 | void Unselect(); | |
9dfbf520 VZ |
308 | // unselect all items (only makes sense for multiple selection control) |
309 | void UnselectAll(); | |
08b7c251 VZ |
310 | // select this item |
311 | void SelectItem(const wxTreeItemId& item); | |
312 | // make sure this item is visible (expanding the parent item and/or | |
313 | // scrolling to this item if necessary) | |
314 | void EnsureVisible(const wxTreeItemId& item); | |
315 | // scroll to this item (but don't expand its parent) | |
316 | void ScrollTo(const wxTreeItemId& item); | |
317 | ||
318 | // start editing the item label: this (temporarily) replaces the item | |
319 | // with a one line edit control. The item will be selected if it hadn't | |
320 | // been before. textCtrlClass parameter allows you to create an edit | |
321 | // control of arbitrary user-defined class deriving from wxTextCtrl. | |
322 | wxTextCtrl* EditLabel(const wxTreeItemId& item, | |
323 | wxClassInfo* textCtrlClass = CLASSINFO(wxTextCtrl)); | |
324 | // returns the same pointer as StartEdit() if the item is being edited, | |
325 | // NULL otherwise (it's assumed that no more than one item may be | |
326 | // edited simultaneously) | |
327 | wxTextCtrl* GetEditControl() const; | |
328 | // end editing and accept or discard the changes to item label | |
329 | void EndEditLabel(const wxTreeItemId& item, bool discardChanges = FALSE); | |
330 | ||
95aabccc VZ |
331 | // sorting |
332 | // this function is called to compare 2 items and should return -1, 0 | |
333 | // or +1 if the first item is less than, equal to or greater than the | |
334 | // second one. The base class version performs alphabetic comparaison | |
335 | // of item labels (GetText) | |
336 | virtual int OnCompareItems(const wxTreeItemId& item1, | |
337 | const wxTreeItemId& item2); | |
338 | // sort the children of this item using OnCompareItems | |
08b7c251 | 339 | // |
95aabccc VZ |
340 | // NB: this function is not reentrant and not MT-safe (FIXME)! |
341 | void SortChildren(const wxTreeItemId& item); | |
08b7c251 VZ |
342 | |
343 | // helpers | |
344 | // ------- | |
345 | ||
add28c55 VZ |
346 | // determine to which item (if any) belongs the given point (the |
347 | // coordinates specified are relative to the client area of tree ctrl) | |
348 | // and fill the flags parameter with a bitmask of wxTREE_HITTEST_xxx | |
349 | // constants. | |
350 | // | |
351 | // The first function is more portable (because easier to implement | |
352 | // on other platforms), but the second one returns some extra info. | |
353 | wxTreeItemId HitTest(const wxPoint& point) | |
354 | { int dummy; return HitTest(point, dummy); } | |
355 | wxTreeItemId HitTest(const wxPoint& point, int& flags); | |
08b7c251 VZ |
356 | |
357 | // get the bounding rectangle of the item (or of its label only) | |
f7c832a7 | 358 | bool GetBoundingRect(const wxTreeItemId& item, |
16e93305 | 359 | wxRect& rect, |
08b7c251 VZ |
360 | bool textOnly = FALSE) const; |
361 | ||
08b7c251 VZ |
362 | // deprecated |
363 | // ---------- | |
364 | ||
365 | // these methods are deprecated and will be removed in future versions of | |
366 | // wxWindows, they're here for compatibility only, don't use them in new | |
367 | // code (the comments indicate why these methods are now useless and how to | |
368 | // replace them) | |
369 | ||
370 | // use Expand, Collapse, CollapseAndReset or Toggle | |
371 | void ExpandItem(const wxTreeItemId& item, int action); | |
372 | ||
373 | // use AddRoot, PrependItem or AppendItem | |
374 | wxTreeItemId InsertItem(const wxTreeItemId& parent, | |
375 | const wxString& text, | |
376 | int image = -1, int selImage = -1, | |
377 | long insertAfter = wxTREE_INSERT_LAST); | |
378 | ||
379 | // use Set/GetImageList and Set/GetStateImageList | |
380 | wxImageList *GetImageList(int) const | |
381 | { return GetImageList(); } | |
382 | void SetImageList(wxImageList *imageList, int) | |
383 | { SetImageList(imageList); } | |
384 | ||
74b31181 VZ |
385 | // use Set/GetItemImage directly |
386 | // get the selected item image | |
387 | int GetItemSelectedImage(const wxTreeItemId& item) const | |
388 | { return GetItemImage(item, wxTreeItemIcon_Selected); } | |
389 | // set the selected item image | |
390 | void SetItemSelectedImage(const wxTreeItemId& item, int image) | |
391 | { SetItemImage(item, image, wxTreeItemIcon_Selected); } | |
392 | ||
08b7c251 VZ |
393 | // implementation |
394 | // -------------- | |
3f7bc32b | 395 | |
23f681ec | 396 | virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); |
fd3f686c | 397 | virtual bool MSWCommand(WXUINT param, WXWORD id); |
a23fd0e1 | 398 | virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); |
08b7c251 | 399 | |
bb448552 VZ |
400 | // override some base class virtuals |
401 | virtual bool SetBackgroundColour(const wxColour &colour); | |
402 | virtual bool SetForegroundColour(const wxColour &colour); | |
403 | ||
9dfbf520 VZ |
404 | // get/set the check state for the item (only for wxTR_MULTIPLE) |
405 | bool IsItemChecked(const wxTreeItemId& item) const; | |
406 | void SetItemCheck(const wxTreeItemId& item, bool check = TRUE); | |
407 | ||
2bda0e17 | 408 | protected: |
08b7c251 VZ |
409 | // SetImageList helper |
410 | void SetAnyImageList(wxImageList *imageList, int which); | |
411 | ||
d00407b2 VZ |
412 | // refresh a single item |
413 | void RefreshItem(const wxTreeItemId& item); | |
414 | ||
74b31181 | 415 | wxTextCtrl *m_textCtrl; // used while editing the item label |
08b7c251 VZ |
416 | wxImageList *m_imageListNormal, // images for tree elements |
417 | *m_imageListState; // special images for app defined states | |
0377efa2 | 418 | bool m_ownsImageListNormal, m_ownsImageListState; |
08b7c251 VZ |
419 | |
420 | private: | |
421 | // the common part of all ctors | |
422 | void Init(); | |
423 | ||
424 | // helper functions | |
425 | inline bool DoGetItem(wxTreeViewItem *tvItem) const; | |
426 | inline void DoSetItem(wxTreeViewItem *tvItem); | |
427 | ||
428 | inline void DoExpand(const wxTreeItemId& item, int flag); | |
429 | ||
430 | wxTreeItemId DoInsertItem(const wxTreeItemId& parent, | |
431 | wxTreeItemId hInsertAfter, | |
432 | const wxString& text, | |
433 | int image, int selectedImage, | |
434 | wxTreeItemData *data); | |
435 | ||
74b31181 VZ |
436 | int DoGetItemImageFromData(const wxTreeItemId& item, |
437 | wxTreeItemIcon which) const; | |
438 | void DoSetItemImageFromData(const wxTreeItemId& item, | |
439 | int image, | |
440 | wxTreeItemIcon which) const; | |
9dfbf520 VZ |
441 | void DoSetItemImages(const wxTreeItemId& item, int image, int imageSel); |
442 | ||
08b7c251 | 443 | void DeleteTextCtrl(); |
092bddef | 444 | |
502a2b18 VZ |
445 | // support for additional item images which we implement using |
446 | // wxTreeItemIndirectData technique - see the comments in msw/treectrl.cpp | |
74b31181 | 447 | void SetIndirectItemData(const wxTreeItemId& item, |
502a2b18 | 448 | class wxTreeItemIndirectData *data); |
74b31181 | 449 | bool HasIndirectData(const wxTreeItemId& item) const; |
502a2b18 | 450 | bool IsDataIndirect(wxTreeItemData *data) const |
8b4a9377 | 451 | { return data && data->GetId().m_pItem == 0; } |
74b31181 | 452 | |
696e1ea0 VZ |
453 | // the hash storing the items attributes (indexed by items ids) |
454 | wxHashTable m_attrs; | |
455 | ||
456 | // TRUE if the hash above is not empty | |
457 | bool m_hasAnyAttr; | |
458 | ||
23f681ec VZ |
459 | // used for dragging |
460 | wxDragImage *m_dragImage; | |
461 | ||
a9c1265f VZ |
462 | // Virtual root item, if wxTR_HIDE_ROOT is set. |
463 | void* m_pVirtualRoot; | |
464 | ||
3f7bc32b VZ |
465 | // the starting item for selection with Shift |
466 | WXHTREEITEM m_htSelStart; | |
467 | ||
502a2b18 VZ |
468 | friend class wxTreeItemIndirectData; |
469 | friend class wxTreeSortHelper; | |
470 | ||
092bddef | 471 | DECLARE_DYNAMIC_CLASS(wxTreeCtrl) |
2bda0e17 KB |
472 | }; |
473 | ||
1e6feb95 VZ |
474 | #endif // wxUSE_TREECTRL |
475 | ||
2bda0e17 | 476 | #endif |
bbcdf8bc | 477 | // _WX_TREECTRL_H_ |