2 * Treeview class extra info
4 * Copyright 1998 Eric Kohl
5 * Copyright 1998 Alex Priem
8 #ifndef __WINE_TREEVIEW_H
9 #define __WINE_TREEVIEW_H
11 #define MINIMUM_INDENT 10
14 #define TVITEM_ALLOC 16
15 #define TV_REFRESH_TIMER 1
16 #define TV_EDIT_TIMER 2
17 #define TV_REFRESH_TIMER_SET 1
18 #define TV_EDIT_TIMER_SET 2
19 #define TV_REFRESH_DELAY 100 /* 100 ms delay between two refreshes */
20 #define TV_DEFAULTITEMHEIGHT 15
22 /* internal structures */
38 int parent
; /* handle to parent or 0 if at root*/
39 int firstChild
; /* handle to first child or 0 if no child*/
40 int sibling
; /* handle to next item in list, 0 if last */
41 int upsibling
; /* handle to previous item in list, 0 if first */
48 #define TV_HSCROLL 0x01 /* treeview too large to fit in window */
49 #define TV_VSCROLL 0x02 /* (horizontal/vertical) */
51 typedef struct tagTREEVIEW_INFO
53 UINT32 uInternalStatus
;
55 UINT32 uNumItems
; /* number of valid TREEVIEW_ITEMs */
56 UINT32 uNumPtrsAlloced
;
57 UINT32 uMaxHandle
; /* needed for delete_item */
58 HTREEITEM TopRootItem
; /* handle to first item in treeview */
60 UINT32 uItemHeight
; /* item height, -1 for default item height */
61 UINT32 uRealItemHeight
; /* real item height in pixels */
62 UINT32 uVisibleHeight
; /* visible height of treeview in pixels */
63 UINT32 uTotalHeight
; /* total height of treeview in pixels */
64 UINT32 uIndent
; /* indentation in pixels */
65 HTREEITEM selectedItem
; /* handle to selected item or 0 if none */
66 HTREEITEM firstVisible
; /* handle to first visible item */
67 HTREEITEM dropItem
; /* handle to item selected by drag cursor */
68 INT32 cx
,cy
; /* current x/y place in list */
73 HIMAGELIST himlNormal
;
75 TREEVIEW_ITEM
*items
; /* itemlist */
76 INT32
*freeList
; /* bitmap indicating which elements are valid */
77 /* 1=valid, 0=free; */
78 /* size of list= uNumPtrsAlloced/32 */
83 extern void TREEVIEW_Register (void);
85 #endif /* __WINE_TREEVIEW_H */