Ignore:
Timestamp:
Feb 22, 2000, 6:05:17 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

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

    r2835 r2856  
    1 /* $Id: treeview.h,v 1.12 2000-02-20 18:26:07 cbratschi Exp $ */
     1/* $Id: treeview.h,v 1.13 2000-02-22 17:05:17 cbratschi Exp $ */
    22/*
    33 * Treeview class extra info
     
    5151typedef struct tagTREEVIEW_INFO
    5252{
    53   UINT          uInternalStatus;
    54   INT           Timer;
    55   UINT          uNumItems;      /* number of valid TREEVIEW_ITEMs */
    56   UINT          uNumPtrsAlloced;
    57   HTREEITEM     uMaxHandle;     /* needed for delete_item */
    58   HTREEITEM     TopRootItem;    /* handle to first item in treeview */
    59   INT           cdmode;         /* last custom draw setting */
    60   UINT          uScrollTime;    /* max. time for scrolling in milliseconds*/
    61   UINT          uItemHeight;    /* item height, -1 for default item height */
    62   UINT          uRealItemHeight;// current item height in pixels
    63   UINT          uVScrollStep;   // scroll step in pixels
    64   UINT          uVisibleHeight; /* visible height of treeview in pixels */
    65   UINT          uTotalHeight;   /* total height of treeview in pixels */
    66   UINT          uVisibleWidth;
    67   UINT          uTotalWidth;
    68   UINT          uIndent;        /* indentation in pixels */
    69   HTREEITEM     selectedItem;   /* handle to selected item or 0 if none */
    70   HTREEITEM     hotItem;        /* handle currently under cursor, 0 if none */
    71   HTREEITEM     tipItem;        // item with tooltip
    72   HTREEITEM     editItem;       /* handle to item currently editted, 0 if none */
    73   HTREEITEM     firstVisible;   /* handle to first visible item */
    74   HTREEITEM     dropItem;       /* handle to item selected by drag cursor */
    75   HTREEITEM     insertMarkItem; /* item after which insertion mark is placed */
    76   BOOL          insertBeforeorAfter; /* flag used by TVM_SETINSERTMARK */
    77   HIMAGELIST    dragList;       /* Bitmap of dragged item */
    78   POINT         lefttop;        //in pixels
    79   COLORREF      clrBk;
    80   COLORREF      clrText;
    81   COLORREF      clrLine;
    82   COLORREF      clrInsertMark;
    83   HFONT         hFont;
    84   HFONT         hBoldFont;
    85   HWND          hwndToolTip;
    86   HWND          hwndEdit;
    87   WNDPROC       wpEditOrig;     /* needed for subclassing edit control */
    88   HIMAGELIST    himlNormal;
    89   HIMAGELIST    himlState;
    90   LPTVSORTCB    pCallBackSort; /* ptr to TVSORTCB struct for callback sorting */
    91   TREEVIEW_ITEM *items;        /* itemlist */
    92   INT           *freeList;     /* bitmap indicating which elements are valid */
    93                                /* 1=valid, 0=free;   */
    94                                /* size of list= uNumPtrsAlloced/32 */
    95   LPWSTR        pszISearch;
    96   UINT          uISearchLen;
     53  COMCTL32_HEADER header;
     54  UINT            uInternalStatus;
     55  INT             Timer;
     56  UINT            uNumItems;      /* number of valid TREEVIEW_ITEMs */
     57  UINT            uNumPtrsAlloced;
     58  HTREEITEM       uMaxHandle;     /* needed for delete_item */
     59  HTREEITEM       TopRootItem;    /* handle to first item in treeview */
     60  INT             cdmode;         /* last custom draw setting */
     61  UINT            uScrollTime;    /* max. time for scrolling in milliseconds*/
     62  UINT            uItemHeight;    /* item height, -1 for default item height */
     63  UINT            uRealItemHeight;// current item height in pixels
     64  UINT            uVScrollStep;   // scroll step in pixels
     65  UINT            uVisibleHeight; /* visible height of treeview in pixels */
     66  UINT            uTotalHeight;   /* total height of treeview in pixels */
     67  UINT            uVisibleWidth;
     68  UINT            uTotalWidth;
     69  UINT            uIndent;        /* indentation in pixels */
     70  HTREEITEM       selectedItem;   /* handle to selected item or 0 if none */
     71  HTREEITEM       hotItem;        /* handle currently under cursor, 0 if none */
     72  HTREEITEM       tipItem;        // item with tooltip
     73  HTREEITEM       editItem;       /* handle to item currently editted, 0 if none */
     74  HTREEITEM       firstVisible;   /* handle to first visible item */
     75  HTREEITEM       dropItem;       /* handle to item selected by drag cursor */
     76  HTREEITEM       insertMarkItem; /* item after which insertion mark is placed */
     77  BOOL            insertBeforeorAfter; /* flag used by TVM_SETINSERTMARK */
     78  HIMAGELIST      dragList;       /* Bitmap of dragged item */
     79  POINT           lefttop;        //in pixels
     80  COLORREF        clrBk;
     81  COLORREF        clrText;
     82  COLORREF        clrLine;
     83  COLORREF        clrInsertMark;
     84  HFONT           hFont;
     85  HFONT           hBoldFont;
     86  HWND            hwndToolTip;
     87  HWND            hwndEdit;
     88  WNDPROC         wpEditOrig;     /* needed for subclassing edit control */
     89  HIMAGELIST      himlNormal;
     90  HIMAGELIST      himlState;
     91  LPTVSORTCB      pCallBackSort; /* ptr to TVSORTCB struct for callback sorting */
     92  TREEVIEW_ITEM   *items;        /* itemlist */
     93  INT             *freeList;     /* bitmap indicating which elements are valid */
     94                                 /* 1=valid, 0=free;   */
     95                                 /* size of list= uNumPtrsAlloced/32 */
     96  LPWSTR          pszISearch;
     97  UINT            uISearchLen;
    9798} TREEVIEW_INFO, *LPTREEVIEW_INFO;
    9899
    99100/* bitflags for infoPtr->uInternalStatus */
    100101
    101 #define TV_UNICODE      0x001    // for TVM_GETUNICODEFORMAT
    102 #define TV_HSCROLL      0x002    /* treeview too large to fit in window */
    103 #define TV_VSCROLL      0x004    /* (horizontal/vertical) */
    104 #define TV_LDRAG        0x008    /* Lbutton pushed to start drag */
    105 #define TV_LDRAGGING    0x010    /* Lbutton pushed, mouse moved.  */
    106 #define TV_RDRAG        0x020    /* dito Rbutton */
    107 #define TV_RDRAGGING    0x040
    108 #define TV_NOREDRAW     0x080
    109 #define TV_CALCALL      0x100
     102#define TV_HSCROLL      0x001    /* treeview too large to fit in window */
     103#define TV_VSCROLL      0x002    /* (horizontal/vertical) */
     104#define TV_LDRAG        0x004    /* Lbutton pushed to start drag */
     105#define TV_LDRAGGING    0x008    /* Lbutton pushed, mouse moved.  */
     106#define TV_RDRAG        0x010    /* dito Rbutton */
     107#define TV_RDRAGGING    0x020
     108#define TV_NOREDRAW     0x040
     109#define TV_CALCALL      0x080
    110110
    111111/* bitflags for infoPtr->timer */
Note: See TracChangeset for help on using the changeset viewer.