Changeset 3583 for trunk/include/win/treeview.h
- Timestamp:
- May 22, 2000, 7:19:00 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/treeview.h
r3408 r3583 1 /* $Id: treeview.h,v 1.1 8 2000-04-16 18:25:06cbratschi Exp $ */1 /* $Id: treeview.h,v 1.19 2000-05-22 17:18:59 cbratschi Exp $ */ 2 2 /* 3 3 * Treeview class extra info … … 11 11 #define __WINE_TREEVIEW_H 12 12 13 #define MINIMUM_INDENT 1014 13 #define ITEM_VSPACE 2 15 14 #define TV_REFRESH_DELAY 100 /* 100 ms delay between two refreshes */ … … 22 21 /* internal structures */ 23 22 24 typedef struct 23 typedef struct _TREEITEM /* HTREEITEM is a _TREEINFO *. */ 25 24 { 26 UINT mask; 27 HTREEITEM hItem; 25 UINT callbackMask; 28 26 UINT state; 29 27 UINT stateMask; … … 34 32 int cChildren; 35 33 LPARAM lParam; 36 int iIntegral; 34 int iIntegral; /* item height multiplier (1 is normal) */ 37 35 int iLevel; /* indentation level:0=root level */ 38 COLORREF clrText;39 36 HTREEITEM parent; /* handle to parent or 0 if at root*/ 40 37 HTREEITEM firstChild; /* handle to first child or 0 if no child*/ 41 HTREEITEM sibling; /* handle to next item in list, 0 if last */42 HTREEITEM upsibling; /* handle to previousitem in list, 0 if first */43 int visible;38 HTREEITEM lastChild; 39 HTREEITEM prevSibling; /* handle to prev item in list, 0 if first */ 40 HTREEITEM nextSibling; /* handle to next item in list, 0 if last */ 44 41 RECT rect; 45 RECT text; 46 RECT expandBox; /* expand box (+/-) coordinate */ 47 RECT bitmap; 48 RECT statebitmap; 49 BOOL calculated; 42 LONG linesOffset; 43 LONG stateOffset; 44 LONG imageOffset; 45 LONG textOffset; 46 LONG textWidth; /* horizontal text extent for pszText */ 47 LONG textHeight; 48 BOOL inclient; // displayed in client rect 49 BOOL displayed; // item is displayed 50 int displayOrder; /* display ordering, 0 is first display item */ 51 52 BOOL calculated; //rect is valid 50 53 } TREEVIEW_ITEM, *LPTREEVIEW_ITEM; 51 54 … … 53 56 { 54 57 COMCTL32_HEADER header; 55 UINT uInternalStatus; 56 INT Timer; 57 UINT uNumItems; /* number of valid TREEVIEW_ITEMs */ 58 UINT uNumPtrsAlloced; 59 HTREEITEM uMaxHandle; /* needed for delete_item */ 60 HTREEITEM TopRootItem; /* handle to first item in treeview */ 61 INT cdmode; /* last custom draw setting */ 62 UINT uScrollTime; /* max. time for scrolling in milliseconds*/ 63 UINT uItemHeight; /* item height, -1 for default item height */ 64 UINT uRealItemHeight;// current item height in pixels 65 UINT uVScrollStep; // scroll step in pixels 66 UINT uVisibleHeight; /* visible height of treeview in pixels */ 67 UINT uTotalHeight; /* total height of treeview in pixels */ 68 UINT uVisibleWidth; 69 UINT uTotalWidth; 70 UINT uIndent; /* indentation in pixels */ 71 HTREEITEM selectedItem; /* handle to selected item or 0 if none */ 72 HTREEITEM hotItem; /* handle currently under cursor, 0 if none */ 58 59 HWND hwnd; 60 DWORD dwStyle; 61 HTREEITEM root; 62 UINT uInternalStatus; 63 INT Timer; 64 UINT uNumItems; /* number of valid TREEVIEW_ITEMs */ 65 INT cdmode; /* last custom draw setting */ 66 UINT uScrollTime; /* max. time for scrolling in milliseconds*/ 67 68 UINT uItemHeight; /* item height */ 69 BOOL bHeightSet; 70 71 LONG clientWidth; /* width of control window */ 72 LONG clientHeight; /* height of control window */ 73 74 LONG treeWidth; /* width of displayed tree items */ 75 LONG treeHeight; /* height of displayed tree items */ 76 77 UINT uIndent; /* indentation in pixels */ 78 HTREEITEM selectedItem; /* handle to selected item or 0 if none */ 79 HTREEITEM focusItem; /* handle to item that has focus, 0 if none */ 80 HTREEITEM hotItem; /* handle currently under cursor, 0 if none */ 81 HTREEITEM firstVisible; /* handle to first visible item */ 82 int maxDisplayOrder; 83 HTREEITEM dropItem; /* handle to item selected by drag cursor */ 84 HTREEITEM insertMarkItem; /* item after which insertion mark is placed */ 85 BOOL insertBeforeorAfter; /* flag used by TVM_SETINSERTMARK */ 86 HIMAGELIST dragList; /* Bitmap of dragged item */ 87 COLORREF clrBk; 88 COLORREF clrText; 89 COLORREF clrLine; 90 COLORREF clrInsertMark; 91 HFONT hFont; 92 HFONT hBoldFont; 93 HWND hwndToolTip; 94 95 HWND hwndEdit; 96 WNDPROC wpEditOrig; /* orig window proc for subclassing edit */ 97 BOOL bIgnoreEditKillFocus; 98 BOOL bLabelChanged; 99 100 HIMAGELIST himlNormal; 101 int normalImageHeight; 102 int normalImageWidth; 103 HIMAGELIST himlState; 104 int stateImageHeight; 105 int stateImageWidth; 106 HDPA items; 107 73 108 HTREEITEM tipItem; // item with tooltip 74 HTREEITEM editItem; /* handle to item currently editted, 0 if none */75 HTREEITEM firstVisible; /* handle to first visible item */76 HTREEITEM dropItem; /* handle to item selected by drag cursor */77 HTREEITEM insertMarkItem; /* item after which insertion mark is placed */78 BOOL insertBeforeorAfter; /* flag used by TVM_SETINSERTMARK */79 HIMAGELIST dragList; /* Bitmap of dragged item */80 109 POINT lefttop; //in pixels 81 COLORREF clrBk; 82 COLORREF clrText; 83 COLORREF clrLine; 84 COLORREF clrInsertMark; 85 HFONT hFont; 86 HFONT hBoldFont; 87 HWND hwndToolTip; 88 HWND hwndEdit; 89 WNDPROC wpEditOrig; /* needed for subclassing edit control */ 90 HIMAGELIST himlNormal; 91 HIMAGELIST himlState; 92 LPTVSORTCB pCallBackSort; /* ptr to TVSORTCB struct for callback sorting */ 93 TREEVIEW_ITEM *items; /* itemlist */ 94 INT *freeList; /* bitmap indicating which elements are valid */ 95 /* 1=valid, 0=free; */ 96 /* size of list= uNumPtrsAlloced/32 */ 110 97 111 LPWSTR pszISearch; 98 112 UINT uISearchLen;
Note:
See TracChangeset
for help on using the changeset viewer.