Ignore:
Timestamp:
May 22, 2000, 7:19:00 PM (25 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/treeview.h

    r3408 r3583  
    1 /* $Id: treeview.h,v 1.18 2000-04-16 18:25:06 cbratschi Exp $ */
     1/* $Id: treeview.h,v 1.19 2000-05-22 17:18:59 cbratschi Exp $ */
    22/*
    33 * Treeview class extra info
     
    1111#define __WINE_TREEVIEW_H
    1212
    13 #define MINIMUM_INDENT        10
    1413#define ITEM_VSPACE            2
    1514#define TV_REFRESH_DELAY     100     /* 100 ms delay between two refreshes */
     
    2221/* internal structures */
    2322
    24 typedef struct
     23typedef struct _TREEITEM    /* HTREEITEM is a _TREEINFO *. */
    2524{
    26   UINT      mask;
    27   HTREEITEM hItem;
     25  UINT      callbackMask;
    2826  UINT      state;
    2927  UINT      stateMask;
     
    3432  int       cChildren;
    3533  LPARAM    lParam;
    36   int       iIntegral;
     34  int       iIntegral;      /* item height multiplier (1 is normal) */
    3735  int       iLevel;         /* indentation level:0=root level */
    38   COLORREF  clrText;
    3936  HTREEITEM parent;         /* handle to parent or 0 if at root*/
    4037  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 previous item 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 */
    4441  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
    5053} TREEVIEW_ITEM, *LPTREEVIEW_ITEM;
    5154
     
    5356{
    5457  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
    73108  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 */
    80109  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
    97111  LPWSTR          pszISearch;
    98112  UINT            uISearchLen;
Note: See TracChangeset for help on using the changeset viewer.