ReactOS 0.4.15-dev-7958-gcd0bb1a
treelist.h File Reference
#include <commctrl.h>
Include dependency graph for treelist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _TVSORTEX
 
struct  _TVFIND
 
struct  _TV_KEYDOWN_EX
 
struct  _TV_STARTEDIT
 
struct  _TV_COLSIZE
 

Macros

#define SNDMSG   SendMessage
 
#define TVCOLUMN   LV_COLUMN
 
#define TV_COLUMN   LV_COLUMN
 
#define TV_FIND   TVFIND
 
#define TV_NOIMAGE   (-2)
 
#define TV_NOCOLOR   0xFFFFFFFF
 
#define TV_NOAUTOEXPAND   0x20000000
 
#define TV_SECONDICON   0x40000000
 
#define TVLE_DONOTIFY   0xF5A5A500
 
#define TVIF_TEXTPTR   0x80000000
 
#define TVIF_TOOLTIPTIME   0x40000000
 
#define TVIF_TEXTCHANGED   0x20000000
 
#define TVIF_RETURNEXIT   0x10000000
 
#define TVIF_CASE   0x08000000
 
#define TVIF_NEXT   0x04000000
 
#define TVIF_CHILD   0x02000000
 
#define TVIF_CANCELED   0x01000000
 
#define TVIF_ONLYFOCUS   0x00800000
 
#define TVIF_SUBITEM   0x8000
 
#define TVIF_SUBNUMBER   0x4000
 
#define TVIS_UNDERLINE   0x0001
 
#define TVSIL_CHECK   0x0003
 
#define TVSIL_SUBIMAGES   0x0004
 
#define TVSIL_HEADER   0x0005
 
#define TVN_COLUMNCLICK   HDN_ITEMCLICK
 
#define TVN_COLUMNDBLCLICK   HDN_ITEMDBLCLICK
 
#define TVE_EXPANDRECURSIVE   (0x80000000)
 
#define TVE_EXPANDFORCE   (0x40000000)
 
#define TVE_EXPANDNEXT   (0x20000000)
 
#define TVE_ALLCHILDS   (0x10000000)
 
#define TVE_ONLYCHILDS   (0x00000008)
 
#define TVI_SORTEX   ((HTREEITEM)(ULONG_PTR)0xFFFF0007)
 
#define TVI_BEFORE   ((HTREEITEM)(ULONG_PTR)0xFFFF0006)
 
#define TVI_AFTER   ((HTREEITEM)(ULONG_PTR)0xFFFF0005)
 
#define TVI_ROW(n)   ((HTREEITEM)(ULONG_PTR)(0xFFE00000+(n)))
 
#define VK_DBLCLK   0x10000
 
#define VK_ICONCLK   0x10001
 
#define VK_EDITCLK   0x10002
 
#define TV_UINICODE   0
 
#define TVC_CLASSNAME   "SysTreeList32"
 
#define TVC_BK   0
 
#define TVC_ODD   1
 
#define TVC_EVEN   2
 
#define TVC_FRAME   3
 
#define TVC_TEXT   4
 
#define TVC_LINE   5
 
#define TVC_BOX   6
 
#define TVC_TRACK   7
 
#define TVC_MARK   8
 
#define TVC_MARKODD   8
 
#define TVC_MARKEVEN   9
 
#define TVC_INSERT   10
 
#define TVC_BOXBG   11
 
#define TVC_COLBK   12
 
#define TVC_COLODD   13
 
#define TVC_COLEVEN   14
 
#define TVC_GRAYED   15
 
#define TVGN_DROPHILITESUB   0x000C
 
#define TVGN_CARETSUB   0x000D
 
#define TVGN_NEXTSELECTED   0x000E
 
#define TVGN_FOCUS   0x000F
 
#define TVGN_FOCUSSUB   0x0010
 
#define TVGN_NEXTSELCHILD   0x0011
 
#define TVGN_LASTCHILD   0x0012
 
#define TVGN_NEXTITEM   0x0013
 
#define TVCF_FMT   LVCF_FMT
 
#define TVCF_IMAGE   LVCF_IMAGE
 
#define TVCF_TEXT   LVCF_TEXT
 
#define TVCF_WIDTH   LVCF_WIDTH
 
#define TVCF_VWIDTH   LVCF_SUBITEM
 
#define TVCF_MIN   LVCF_ORDER
 
#define TVCF_MARK   0x80000000
 
#define TVCF_FIXED   0x40000000
 
#define TVCF_LASTSIZE   0x44332211
 
#define TVCFMT_BITMAP_ON_RIGHT   LVCFMT_BITMAP_ON_RIGHT
 
#define TVCFMT_COL_HAS_IMAGES   LVCFMT_COL_HAS_IMAGES
 
#define TVCFMT_CENTER   LVCFMT_CENTER
 
#define TVCFMT_IMAGE   LVCFMT_IMAGE
 
#define TVCFMT_LEFT   LVCFMT_LEFT
 
#define TVCFMT_RIGHT   LVCFMT_RIGHT
 
#define TVCFMT_FIXED   0x20000000
 
#define TVCFMT_MARK   0x10000000
 
#define TVAE_NONE   (0<<TVAE_MODEPOS)
 
#define TVAE_EDIT   (1<<TVAE_MODEPOS)
 
#define TVAE_COMBO   (2<<TVAE_MODEPOS)
 
#define TVAE_CBLIST   (3<<TVAE_MODEPOS)
 
#define TVAE_STEP   (4<<TVAE_MODEPOS)
 
#define TVAE_STEPED   (5<<TVAE_MODEPOS)
 
#define TVAE_CHECK   (6<<TVAE_MODEPOS)
 
#define TVAE_CHECKED   (7<<TVAE_MODEPOS)
 
#define TVAE_NEXTLINE   0x0001
 
#define TVAE_DBLCLICK   0x0002
 
#define TVAE_FULLWIDTH   0x0004
 
#define TVAE_PTRLIST   0x0008
 
#define TVAE_ONLYRETURN   0x0010
 
#define TVAE_STATEENABLE   0x0020
 
#define TVAE_ICONCLICK   0x0040
 
#define TVAE_DROPDOWN   0x0080
 
#define TVAE_COL(c)   (((c)&0x3F)<<11)
 
#define TVAE_CHAR(c)   (((c)&0xFF)<<17)
 
#define TVAE_COUNT(c)   (((c)&0x7F)<<25)
 
#define TVAE_MODEMASK   (7<<TVAE_MODEPOS)
 
#define TVAE_MODEPOS   0x0008
 
#define TVIS_DISABLEBIT   0x8000
 
#define TVHT_SUBTOCOL(u)   (((unsigned)u)>>24)
 
#define TVHT_SUBMASK   0xFF000000
 
#define TVHT_ONRIGHTSPACE   0x00800000
 
#define TVHT_ONSUBLABEL   0x00400000
 
#define TVHT_ONSUBICON   0x00200000
 
#define TVHT_ONSUBRIGHT   0x00100000
 
#define TVHT_ONSUBITEM   (TVHT_ONSUBICON|TVHT_ONSUBLABEL)
 
#define TVIR_COLTOSUB(u)   ((u)<<24)
 
#define TVIR_GETCOLUMN   0x00000080
 
#define TVIR_TEXT   0x00000001
 
#define TVIS_WITHCHILDS   0x00000001
 
#define TVIS_DESELECT   0x00000002
 
#define TVOP_AUTOEXPANDOFF   0x00000001
 
#define TVOP_WRITEOPTION   0x80000000
 
#define TVIR_EDITCOMBOCHAR(n)   (((n)&0xFF)<<8)
 
#define TVIR_EDITCOMBODEL   0x00000080
 
#define TVIR_EDITCOMBODOWN   0x10000000
 
#define TVIR_EDITCOMBOBOX   0x20000000
 
#define TVIR_EDITCOMBOLIST   0x40000000
 
#define TVIR_EDITFULL   0x80000000
 
#define TVIR_EDITTEXT   0x00000001
 
#define TVIR_EDITCOL(u)   ((u)&0xFF)
 
#define TVIR_SELALL   0x00000000
 
#define TVIR_SELAREA(a, b)   ((0x0C0000|(a&0x1FF)|((b&0x1FF)<<9))<<8)
 
#define TVIR_SETCURSOR(a)   ((0x080000|(a&0x3FFFF))<<8)
 
#define TVIR_SETAT(a)   ((0x040000|(a&0x3FFFF))<<8)
 
#define TVS_EX_HEADEROWNIMGLIST   0x00000400
 
#define TVS_EX_HEADERCHGNOTIFY   0x00000800
 
#define TVS_EX_HEADERDRAGDROP   0x00001000
 
#define TVS_EX_SINGLECHECKBOX   0x00002000
 
#define TVS_EX_STEPOUT   0x00004000
 
#define TVS_EX_BITCHECKBOX   0x00008000
 
#define TVS_EX_ITEMLINES   0x00010000
 
#define TVS_EX_ALTERNATECOLOR   0x00020000
 
#define TVS_EX_SUBSELECT   0x00040000
 
#define TVS_EX_FULLROWMARK   0x00080000
 
#define TVS_EX_TOOLTIPNOTIFY   0x00100000
 
#define TVS_EX_AUTOEXPANDICON   0x00200000
 
#define TVS_EX_NOCHARSELCET   0x00400000
 
#define TVS_EX_NOCOLUMNRESIZE   0x00800000
 
#define TVS_EX_HIDEHEADERS   0x01000000
 
#define TVS_EX_GRAYEDDISABLE   0x02000000
 
#define TVS_EX_FULLROWITEMS   0x04000000
 
#define TVS_EX_FIXEDCOLSIZE   0x08000000
 
#define TVS_EX_HOMEENDSELECT   0x10000000
 
#define TVS_EX_SHAREIMAGELISTS   0x20000000
 
#define TVS_EX_EDITCLICK   0x40000000
 
#define TVS_EX_NOCURSORSET   0x80000000
 
#define TVS_EX_MULTISELECT   0x00000002
 
#define TVS_EX_AUTOHSCROLL   0x00000020
 
#define TVN_ITEMTOOLTIP   (TVN_FIRST-32)
 
#define TVN_CBSTATECHANGED   (TVN_FIRST-33)
 
#define TVN_STEPSTATECHANGED   (TVN_FIRST-34)
 
#define TVN_STARTEDIT   (TVN_FIRST-35)
 
#define TVN_LBUTTONUP   (TVN_FIRST-36)
 
#define TVN_RBUTTONUP   (TVN_FIRST-37)
 
#define TVN_COLUMNCHANGED   (TVN_FIRST-38)
 
#define TVM_GETHEADER   (TV_FIRST+128-1)
 
#define TVM_GETCOLUMNCOUNT   (TV_FIRST+128-2)
 
#define TVM_DELETECOLUMN   (TV_FIRST+128-3)
 
#define TVM_INSERTCOLUMN   (TV_FIRST+128-4-TV_UINICODE)
 
#define TVM_SELECTSUBITEM   (TV_FIRST+128-6)
 
#define TVM_SELECTDROP   (TV_FIRST+128-7)
 
#define TVM_SETITEMBKCOLOR   (TV_FIRST+128-8)
 
#define TVM_GETITEMBKCOLOR   (TV_FIRST+128-9)
 
#define TVM_SETITEMTEXTCOLOR   (TV_FIRST+128-10)
 
#define TVM_GETITEMTEXTCOLOR   (TV_FIRST+128-11)
 
#define TVM_GETITEMOFROW   (TV_FIRST+128-12)
 
#define TVM_GETROWCOUNT   (TV_FIRST+128-13)
 
#define TVM_GETROWOFITEM   (TV_FIRST+128-14)
 
#define TVM_SETCOLUMN   (TV_FIRST+128-15-TV_UINICODE)
 
#define TVM_GETCOLUMN   (TV_FIRST+128-17-TV_UINICODE)
 
#define TVM_SETCOLUMNWIDTH   (TV_FIRST+128-19)
 
#define TVM_GETCOLUMNWIDTH   (TV_FIRST+128-20)
 
#define TVM_SETUSERDATASIZE   (TV_FIRST+128-21)
 
#define TVM_GETUSERDATASIZE   (TV_FIRST+128-22)
 
#define TVM_GETUSERDATA   (TV_FIRST+128-23)
 
#define TVM_SORTCHILDRENEX   (TV_FIRST+128-24)
 
#define TVM_COLUMNAUTOEDIT   (TV_FIRST+128-25-TV_UINICODE)
 
#define TVM_COLUMNAUTOICON   (TV_FIRST+128-27)
 
#define TVM_GETCOUNTPERPAGE   (TV_FIRST+128-28)
 
#define TVM_FINDITEM   (TV_FIRST+128-29-TV_UINICODE)
 
#define TVM_SELECTCHILDS   (TV_FIRST+128-31)
 
#define TVM_GETSETOPTION   (TV_FIRST+128-32)
 
#define TVM_ISITEMVISIBLE   (TV_FIRST+128-33)
 
#define TVM_SETFOCUSITEM   (TV_FIRST+128-34)
 
#define TVM_GETCOLUMNORDERARRAY   (TV_FIRST+128-35)
 
#define TVM_SETCOLUMNORDERARRAY   (TV_FIRST+128-36)
 
#define TVM_GETITEMSTATE   (TV_FIRST+39)
 
#define TVM_GETEXTENDEDSTYLE   (TV_FIRST+45)
 
#define TVM_SETEXTENDEDSTYLE   (TV_FIRST+44)
 
#define TVM_GETLINECOLOR   (TV_FIRST+41)
 
#define TVM_SETLINECOLOR   (TV_FIRST+40)
 
#define TVNRET_DEFAULT   0
 
#define TVNRET_SKIPOLD   1
 
#define TVNRET_SKIPNEW   2
 
#define TreeList_DeleteChildItems(h, i)   ((BOOL )SNDMSG(h,TVM_DELETEITEM,0x88,(LPARAM)i))
 
#define TreeList_DeleteAllItems(h)   ((BOOL )SNDMSG(h,TVM_DELETEITEM,0,(LPARAM)TVI_ROOT))
 
#define TreeList_DeleteItem(h, i)   ((BOOL )SNDMSG(h,TVM_DELETEITEM,0,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_Expand(h, i, c)   ((BOOL )SNDMSG(h,TVM_EXPAND,(WPARAM)(c),(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_GetHeader(h)   ((HWND )SNDMSG(h,TVM_GETHEADER,0,0))
 
#define TreeList_DeleteColumn(h, i)   ((BOOL )SNDMSG(h,TVM_DELETECOLUMN,(WPARAM)(int)(i),0))
 
#define TreeList_InsertColumn(h, i, p)   ((INT )SNDMSG(h,TVM_INSERTCOLUMN,(WPARAM)(int)(i),(LPARAM)(const TV_COLUMN*)(p)))
 
#define TreeList_GetColumnCount(h)   ((INT )SNDMSG(h,TVM_GETCOLUMNCOUNT,0,0))
 
#define TreeList_HitTest(h, p)   ((HTREEITEM )SNDMSG(h,TVM_HITTEST,0,(LPARAM)(LPTV_HITTESTINFO)(p)))
 
#define TreeList_GetItemOfRow(h, r)   ((HTREEITEM )SNDMSG(h,TVM_GETITEMOFROW,0,r))
 
#define TreeList_GetRowOfItem(h, i)   ((INT )SNDMSG(h,TVM_GETROWOFITEM,0,(LPARAM)(i)))
 
#define TreeList_GetRowCount(h)   ((INT )SNDMSG(h,TVM_GETROWCOUNT ,0,0))
 
#define TreeList_GetCountPerPage(h)   ((INT )SNDMSG(h,TVM_GETCOUNTPERPAGE ,0,0))
 
#define TreeList_GetExtendedStyle(h)   ((DWORD )SNDMSG(h,TVM_GETEXTENDEDSTYLE,0,0))
 
#define TreeList_SetExtendedStyle(h, d)   ((DWORD )SNDMSG(h,TVM_SETEXTENDEDSTYLE,0,d))
 
#define TreeList_SetExtendedStyleEx(h, d, m)   ((DWORD )SNDMSG(h,TVM_SETEXTENDEDSTYLE,m,d))
 
#define TreeList_GetColor(h, i)   ((COLORREF )SNDMSG(h,TVM_GETBKCOLOR,(WPARAM)(i),0))
 
#define TreeList_SetColor(h, i, c)   ((COLORREF )SNDMSG(h,TVM_SETBKCOLOR,(WPARAM)(i),c))
 
#define TreeList_GetItemBkColor(h, i, s)   ((COLORREF )SNDMSG(h,TVM_GETITEMBKCOLOR,(WPARAM)(i),s))
 
#define TreeList_SetItemBkColor(h, i, s, c)   ((COLORREF )SNDMSG(h,TVM_SETITEMBKCOLOR,((UINT)(i))|((s)<<24),c))
 
#define TreeList_GetItemTextColor(h, i, s)   ((COLORREF )SNDMSG(h,TVM_GETITEMTEXTCOLOR,(WPARAM)(i),s))
 
#define TreeList_SetItemTextColor(h, i, s, c)   ((COLORREF )SNDMSG(h,TVM_SETITEMTEXTCOLOR,((UINT)(i))|((s)<<24),c))
 
#define TreeList_IsItemVisible(h, i, s)   ((INT )SNDMSG(h,TVM_ISITEMVISIBLE,s,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_EnsureVisible(h, i)   ((BOOL )SNDMSG(h,TVM_ENSUREVISIBLE,0,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_EnsureVisibleEx(h, i, s)   ((BOOL )SNDMSG(h,TVM_ENSUREVISIBLE,s,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_SelectDropTargetEx(h, i, s)   ((BOOL )SNDMSG(h,TVM_SELECTDROP,(WPARAM)(s),(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_SelectSubItem(h, i, s)   ((BOOL )SNDMSG(h,TVM_SELECTSUBITEM,(WPARAM)(s),(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_SelectChilds(h, i, s)   ((BOOL )SNDMSG(h,TVM_SELECTCHILDS,(WPARAM)(s),(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_Select(h, i, c)   ((BOOL )SNDMSG(h,TVM_SELECTITEM,(WPARAM)(c),(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_EditLabel(h, i, s)   ((HWND )SNDMSG(h,TVM_EDITLABEL,s,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_StartEdit(h, i, s)   ((BOOL )SNDMSG(h,TVM_EDITLABEL,TVIR_EDITCOL(s)|TVLE_DONOTIFY,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_EndEditLabelNow(h, c)   ((BOOL )SNDMSG(h,TVM_ENDEDITLABELNOW,c,0))
 
#define TreeList_GetItem(h, p)   ((BOOL )SNDMSG(h,TVM_GETITEM,0,(LPARAM)(TV_ITEM*)(p)))
 
#define TreeList_GetCount()   ((BOOL )SNDMSG(h,TVM_GETCOUNT,0,0))
 
#define TreeList_GetEditControl(h)   ((HWND )SNDMSG(h,TVM_GETEDITCONTROL,0,0))
 
#define TreeList_GetImageList(h, i)   ((HIMAGELIST)SNDMSG(h,TVM_GETIMAGELIST,i,0))
 
#define TreeList_GetUserData(h, i)   ((LPVOID )SNDMSG(h,TVM_GETUSERDATA,0,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_GetUserDataSize(h)   ((INT )SNDMSG(h,TVM_GETUSERDATASIZE,0,0))
 
#define TreeList_SetUserDataSize(h, s)   ((INT )SNDMSG(h,TVM_SETUSERDATASIZE,0,s))
 
#define TreeList_GetIndent   ((UINT )SNDMSG(h,TVM_GETINDENT,0,0))
 
#define TreeList_GetVisibleCount   ((UINT )SNDMSG(h,TVM_GETVISIBLECOUNT,0,0))
 
#define TreeList_InsertItem(h, p)   ((HTREEITEM )SNDMSG(h,TVM_INSERTITEM,0,(LPARAM)(LPTV_INSERTSTRUCT)(p)))
 
#define TreeList_FindItem(h, p, f)   ((HTREEITEM )SNDMSG(h,TVM_FINDITEM ,(WPARAM)p,(LPARAM)f))
 
#define TreeList_CreateDragImage(h, i)   ((HIMAGELIST)SNDMSG(h,TVM_CREATEDRAGIMAGE, 0, (LPARAM)(HTREEITEM)(i)))
 
#define TreeList_CreateDragImageEx(h, i, s)   ((HIMAGELIST)SNDMSG(h,TVM_CREATEDRAGIMAGE, s, (LPARAM)(HTREEITEM)(i)))
 
#define TreeList_SetImageList(h, l, i)   ((HIMAGELIST)SNDMSG(h,TVM_SETIMAGELIST,i,(LPARAM)(HIMAGELIST)(l)))
 
#define TreeList_SetIndent(h, i)   ((BOOL )SNDMSG(h,TVM_SETINDENT,(WPARAM)(i),0))
 
#define TreeList_SetItem(h, p)   ((BOOL )SNDMSG(h,TVM_SETITEM,0,(LPARAM)(const TV_ITEM*)(p)))
 
#define TreeList_SortChildren(h, i, r)   ((BOOL )SNDMSG(h,TVM_SORTCHILDREN ,(WPARAM)r,(LPARAM)(HTREEITEM)(i)))
 
#define TreeList_SortChildrenCB(h, p, r)   ((BOOL )SNDMSG(h,TVM_SORTCHILDRENCB,(WPARAM)r,(LPARAM)(LPTV_SORTCB)(p)))
 
#define TreeList_SortChildrenEX(h, p, r)   ((BOOL )SNDMSG(h,TVM_SORTCHILDRENEX,(WPARAM)r,(LPARAM)(LPTV_SORTEX)(p)))
 
#define TreeList_SetColumn(h, i, p)   ((BOOL )SNDMSG(h,TVM_SETCOLUMN,i,(LPARAM)(const TV_COLUMN*)(p)))
 
#define TreeList_GetColumn(h, i, p)   ((BOOL )SNDMSG(h,TVM_GETCOLUMN,i,(LPARAM)(TV_COLUMN*)(p)))
 
#define TreeList_SetColumnWidth(h, i, w)   ((BOOL )SNDMSG(h,TVM_SETCOLUMNWIDTH,i,w))
 
#define TreeList_GetColumnWidth(h, i)   ((INT )SNDMSG(h,TVM_GETCOLUMNWIDTH,i,0))
 
#define TreeList_SetColumnAutoEdit(h, i, f, p)   ((BOOL )SNDMSG(h,TVM_COLUMNAUTOEDIT,(WPARAM)((f)&~TVAE_COL(-1))|TVAE_COL(i),(LPARAM)(p)))
 
#define TreeList_SetColumnAutoIcon(h, i, n)   ((BOOL )SNDMSG(h,TVM_COLUMNAUTOICON,i,n))
 
#define TreeList_SetFocusItem(h, i, c)   ((BOOL )SNDMSG(h,TVM_SETFOCUSITEM,c,(LPARAM)(i)))
 
#define TreeList_SetOption(h, i, o)   ((INT )SNDMSG(h,TVM_GETSETOPTION,(i)|TVOP_WRITEOPTION,(LPARAM)(o)))
 
#define TreeList_GetOption(h, i)   ((INT )SNDMSG(h,TVM_GETSETOPTION,i,0))
 
#define TreeList_SetColumnOrderArray(h, n, p)   ((BOOL )SNDMSG(h,TVM_SETCOLUMNORDERARRAY,n,(LPARAM)(p)))
 
#define TreeList_GetColumnOrderArray(h, n, p)   ((BOOL )SNDMSG(h,TVM_GETCOLUMNORDERARRAY,n,(LPARAM)(p)))
 
#define TreeList_GetStyle(h)   ((DWORD )::GetWindowLong(h,GWL_STYLE))
 
#define TreeList_SetStyle(h, d)   ((DWORD )::SetWindowLong(h,GWL_STYLE,d))
 
#define TreeList_SetStyleEx(h, d, m)   ((DWORD )::SetWindowLong(h,GWL_STYLE,((d)&(m))|(::GetWindowLong(h,GWL_STYLE)&~(m))))
 
#define TreeList_GetItemRect(h, i, s, p, c)   (*(HTREEITEM*)p =(i),(BOOL)SNDMSG(h,TVM_GETITEMRECT,(WPARAM)((c)|(TVIR_COLTOSUB(s))),(LPARAM)(RECT*)(p)))
 
#define TreeList_SelectItem(h, i)   TreeList_Select(h,i,TVGN_CARET)
 
#define TreeList_SelectDropTarget(h, i)   TreeList_Select(h,i,TVGN_DROPHILITE)
 
#define TreeList_SelectSetFirstVisible(h, i)   TreeList_Select(h,i,TVGN_FIRSTVISIBLE)
 
#define TreeList_GetNextItem(h, i, c)   TreeView_GetNextItem(h, i, c)
 
#define TreeList_GetChild(h, i)   TreeView_GetNextItem(h, i, TVGN_CHILD)
 
#define TreeList_GetParent(h, i)   TreeView_GetNextItem(h, i, TVGN_PARENT)
 
#define TreeList_GetNextSibling(h, i)   TreeView_GetNextItem(h, i, TVGN_NEXT)
 
#define TreeList_GetPrevSibling(h, i)   TreeView_GetNextItem(h, i, TVGN_PREVIOUS)
 
#define TreeList_GetNextSelected(h, i)   TreeView_GetNextItem(h, i, TVGN_NEXTSELECTED)
 
#define TreeList_GetNextSelectedChild(h, i)   TreeView_GetNextItem(h, i, TVGN_NEXTSELCHILD)
 
#define TreeList_GetNextVisible(h, i)   TreeView_GetNextItem(h, i, TVGN_NEXTVISIBLE)
 
#define TreeList_GetPrevVisible(h, i)   TreeView_GetNextItem(h, i, TVGN_PREVIOUSVISIBLE)
 
#define TreeList_GetLastChild(h, i)   TreeView_GetNextItem(h, i, TVGN_LASTCHILD)
 
#define TreeList_GetSelection(h)   TreeView_GetNextItem(h, NULL, TVGN_CARET)
 
#define TreeList_GetDropHilight(h)   TreeView_GetNextItem(h, NULL, TVGN_DROPHILITE)
 
#define TreeList_GetFirstVisible(h)   TreeView_GetNextItem(h, NULL, TVGN_FIRSTVISIBLE)
 
#define TreeList_GetLastVisible(h)   TreeView_GetNextItem(h, NULL, TVGN_LASTVISIBLE)
 
#define TreeList_GetRoot(h)   TreeView_GetNextItem(h, NULL, TVGN_ROOT)
 
#define TreeList_GetFocus(h)   TreeView_GetNextItem(h, NULL, TVGN_FOCUS)
 
#define TreeList_GetFocusColumn(h)   ((int)TreeView_GetNextItem(h, NULL, TVGN_FOCUSSUB))
 
#define TreeList_GetSelectionColumn(h)   ((int)TreeView_GetNextItem(h, NULL, TVGN_CARETSUB))
 
#define TreeList_GetDropHilightColumn(h)   ((int)TreeView_GetNextItem(h, NULL, TVGN_DROPHILITESUB))
 
#define TLCOLUMN   TVCOLUMN
 
#define HTLITEM   HTREEITEM
 
#define TL_INSERTSTRUCTA   TV_INSERTSTRUCTA
 
#define TL_INSERTSTRUCTW   TV_INSERTSTRUCTW
 
#define TL_INSERTSTRUCT   TV_INSERTSTRUCT
 
#define TreeList_SetItemText(hwndLV, hItem_, iSubItem_, pszText_)
 

Typedefs

typedef int(CALLBACKPFNTVCOMPAREEX) (HWND hWnd, HTREEITEM hItem1, HTREEITEM hItem2, LPARAM lParam1, LPARAM lParam2, LPARAM lParam)
 
typedef HTREEITEM hItem
 
typedef HTREEITEM LPCTSTR pTextItem
 
typedef HTREEITEM LPCTSTR LPCTSTR pTextInsert
 
typedef HTREEITEM LPCTSTR LPCTSTR LPARAM lParamItem
 
typedef HTREEITEM LPCTSTR LPCTSTR LPARAM LPARAM lParamInsert
 
typedef struct _TVSORTEX TVSORTEX
 
typedef struct _TVSORTEXLPTVSORTEX
 
typedef struct _TVFIND TVFIND
 
typedef struct _TVFINDLPTVFIND
 
typedef struct _TV_KEYDOWN_EX TV_KEYDOWN_EX
 
typedef struct _TV_KEYDOWN_EXLPTV_KEYDOWN_EX
 
typedef struct _TV_STARTEDIT TV_STARTEDIT
 
typedef struct _TV_STARTEDITLPTV_STARTEDIT
 
typedef struct _TV_COLSIZE TV_COLSIZE
 
typedef struct _TV_COLSIZELPTV_COLSIZE
 
typedef TVSORTEXLPTV_SORTEX
 
typedef TVSORTEX TV_SORTEX
 

Functions

typedef int (CALLBACK *PFNTVSORTEX)(HWND hWnd
 
int TreeListRegister (HINSTANCE hInstance)
 
BOOL TreeListUnregister (HINSTANCE hInstance)
 

Macro Definition Documentation

◆ HTLITEM

#define HTLITEM   HTREEITEM

Definition at line 460 of file treelist.h.

◆ SNDMSG

#define SNDMSG   SendMessage

Definition at line 31 of file treelist.h.

◆ TL_INSERTSTRUCT

#define TL_INSERTSTRUCT   TV_INSERTSTRUCT

Definition at line 463 of file treelist.h.

◆ TL_INSERTSTRUCTA

#define TL_INSERTSTRUCTA   TV_INSERTSTRUCTA

Definition at line 461 of file treelist.h.

◆ TL_INSERTSTRUCTW

#define TL_INSERTSTRUCTW   TV_INSERTSTRUCTW

Definition at line 462 of file treelist.h.

◆ TLCOLUMN

#define TLCOLUMN   TVCOLUMN

Definition at line 459 of file treelist.h.

◆ TreeList_CreateDragImage

#define TreeList_CreateDragImage (   h,
  i 
)    ((HIMAGELIST)SNDMSG(h,TVM_CREATEDRAGIMAGE, 0, (LPARAM)(HTREEITEM)(i)))

Definition at line 405 of file treelist.h.

◆ TreeList_CreateDragImageEx

#define TreeList_CreateDragImageEx (   h,
  i,
  s 
)    ((HIMAGELIST)SNDMSG(h,TVM_CREATEDRAGIMAGE, s, (LPARAM)(HTREEITEM)(i)))

Definition at line 406 of file treelist.h.

◆ TreeList_DeleteAllItems

#define TreeList_DeleteAllItems (   h)    ((BOOL )SNDMSG(h,TVM_DELETEITEM,0,(LPARAM)TVI_ROOT))

Definition at line 363 of file treelist.h.

◆ TreeList_DeleteChildItems

#define TreeList_DeleteChildItems (   h,
  i 
)    ((BOOL )SNDMSG(h,TVM_DELETEITEM,0x88,(LPARAM)i))

Definition at line 362 of file treelist.h.

◆ TreeList_DeleteColumn

#define TreeList_DeleteColumn (   h,
  i 
)    ((BOOL )SNDMSG(h,TVM_DELETECOLUMN,(WPARAM)(int)(i),0))

Definition at line 367 of file treelist.h.

◆ TreeList_DeleteItem

#define TreeList_DeleteItem (   h,
  i 
)    ((BOOL )SNDMSG(h,TVM_DELETEITEM,0,(LPARAM)(HTREEITEM)(i)))

Definition at line 364 of file treelist.h.

◆ TreeList_EditLabel

#define TreeList_EditLabel (   h,
  i,
  s 
)    ((HWND )SNDMSG(h,TVM_EDITLABEL,s,(LPARAM)(HTREEITEM)(i)))

Definition at line 391 of file treelist.h.

◆ TreeList_EndEditLabelNow

#define TreeList_EndEditLabelNow (   h,
  c 
)    ((BOOL )SNDMSG(h,TVM_ENDEDITLABELNOW,c,0))

Definition at line 393 of file treelist.h.

◆ TreeList_EnsureVisible

#define TreeList_EnsureVisible (   h,
  i 
)    ((BOOL )SNDMSG(h,TVM_ENSUREVISIBLE,0,(LPARAM)(HTREEITEM)(i)))

Definition at line 385 of file treelist.h.

◆ TreeList_EnsureVisibleEx

#define TreeList_EnsureVisibleEx (   h,
  i,
  s 
)    ((BOOL )SNDMSG(h,TVM_ENSUREVISIBLE,s,(LPARAM)(HTREEITEM)(i)))

Definition at line 386 of file treelist.h.

◆ TreeList_Expand

#define TreeList_Expand (   h,
  i,
  c 
)    ((BOOL )SNDMSG(h,TVM_EXPAND,(WPARAM)(c),(LPARAM)(HTREEITEM)(i)))

Definition at line 365 of file treelist.h.

◆ TreeList_FindItem

#define TreeList_FindItem (   h,
  p,
  f 
)    ((HTREEITEM )SNDMSG(h,TVM_FINDITEM ,(WPARAM)p,(LPARAM)f))

Definition at line 404 of file treelist.h.

◆ TreeList_GetChild

#define TreeList_GetChild (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_CHILD)

Definition at line 435 of file treelist.h.

◆ TreeList_GetColor

#define TreeList_GetColor (   h,
  i 
)    ((COLORREF )SNDMSG(h,TVM_GETBKCOLOR,(WPARAM)(i),0))

Definition at line 378 of file treelist.h.

◆ TreeList_GetColumn

#define TreeList_GetColumn (   h,
  i,
  p 
)    ((BOOL )SNDMSG(h,TVM_GETCOLUMN,i,(LPARAM)(TV_COLUMN*)(p)))

Definition at line 414 of file treelist.h.

◆ TreeList_GetColumnCount

#define TreeList_GetColumnCount (   h)    ((INT )SNDMSG(h,TVM_GETCOLUMNCOUNT,0,0))

Definition at line 369 of file treelist.h.

◆ TreeList_GetColumnOrderArray

#define TreeList_GetColumnOrderArray (   h,
  n,
  p 
)    ((BOOL )SNDMSG(h,TVM_GETCOLUMNORDERARRAY,n,(LPARAM)(p)))

Definition at line 423 of file treelist.h.

◆ TreeList_GetColumnWidth

#define TreeList_GetColumnWidth (   h,
  i 
)    ((INT )SNDMSG(h,TVM_GETCOLUMNWIDTH,i,0))

Definition at line 416 of file treelist.h.

◆ TreeList_GetCount

#define TreeList_GetCount ( )    ((BOOL )SNDMSG(h,TVM_GETCOUNT,0,0))

Definition at line 395 of file treelist.h.

◆ TreeList_GetCountPerPage

#define TreeList_GetCountPerPage (   h)    ((INT )SNDMSG(h,TVM_GETCOUNTPERPAGE ,0,0))

Definition at line 374 of file treelist.h.

◆ TreeList_GetDropHilight

#define TreeList_GetDropHilight (   h)    TreeView_GetNextItem(h, NULL, TVGN_DROPHILITE)

Definition at line 445 of file treelist.h.

◆ TreeList_GetDropHilightColumn

#define TreeList_GetDropHilightColumn (   h)    ((int)TreeView_GetNextItem(h, NULL, TVGN_DROPHILITESUB))

Definition at line 452 of file treelist.h.

◆ TreeList_GetEditControl

#define TreeList_GetEditControl (   h)    ((HWND )SNDMSG(h,TVM_GETEDITCONTROL,0,0))

Definition at line 396 of file treelist.h.

◆ TreeList_GetExtendedStyle

#define TreeList_GetExtendedStyle (   h)    ((DWORD )SNDMSG(h,TVM_GETEXTENDEDSTYLE,0,0))

Definition at line 375 of file treelist.h.

◆ TreeList_GetFirstVisible

#define TreeList_GetFirstVisible (   h)    TreeView_GetNextItem(h, NULL, TVGN_FIRSTVISIBLE)

Definition at line 446 of file treelist.h.

◆ TreeList_GetFocus

#define TreeList_GetFocus (   h)    TreeView_GetNextItem(h, NULL, TVGN_FOCUS)

Definition at line 449 of file treelist.h.

◆ TreeList_GetFocusColumn

#define TreeList_GetFocusColumn (   h)    ((int)TreeView_GetNextItem(h, NULL, TVGN_FOCUSSUB))

Definition at line 450 of file treelist.h.

◆ TreeList_GetHeader

#define TreeList_GetHeader (   h)    ((HWND )SNDMSG(h,TVM_GETHEADER,0,0))

Definition at line 366 of file treelist.h.

◆ TreeList_GetImageList

#define TreeList_GetImageList (   h,
  i 
)    ((HIMAGELIST)SNDMSG(h,TVM_GETIMAGELIST,i,0))

Definition at line 397 of file treelist.h.

◆ TreeList_GetIndent

#define TreeList_GetIndent   ((UINT )SNDMSG(h,TVM_GETINDENT,0,0))

Definition at line 401 of file treelist.h.

◆ TreeList_GetItem

#define TreeList_GetItem (   h,
  p 
)    ((BOOL )SNDMSG(h,TVM_GETITEM,0,(LPARAM)(TV_ITEM*)(p)))

Definition at line 394 of file treelist.h.

◆ TreeList_GetItemBkColor

#define TreeList_GetItemBkColor (   h,
  i,
  s 
)    ((COLORREF )SNDMSG(h,TVM_GETITEMBKCOLOR,(WPARAM)(i),s))

Definition at line 380 of file treelist.h.

◆ TreeList_GetItemOfRow

#define TreeList_GetItemOfRow (   h,
  r 
)    ((HTREEITEM )SNDMSG(h,TVM_GETITEMOFROW,0,r))

Definition at line 371 of file treelist.h.

◆ TreeList_GetItemRect

#define TreeList_GetItemRect (   h,
  i,
  s,
  p,
  c 
)    (*(HTREEITEM*)p =(i),(BOOL)SNDMSG(h,TVM_GETITEMRECT,(WPARAM)((c)|(TVIR_COLTOSUB(s))),(LPARAM)(RECT*)(p)))

Definition at line 427 of file treelist.h.

◆ TreeList_GetItemTextColor

#define TreeList_GetItemTextColor (   h,
  i,
  s 
)    ((COLORREF )SNDMSG(h,TVM_GETITEMTEXTCOLOR,(WPARAM)(i),s))

Definition at line 382 of file treelist.h.

◆ TreeList_GetLastChild

#define TreeList_GetLastChild (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_LASTCHILD)

Definition at line 443 of file treelist.h.

◆ TreeList_GetLastVisible

#define TreeList_GetLastVisible (   h)    TreeView_GetNextItem(h, NULL, TVGN_LASTVISIBLE)

Definition at line 447 of file treelist.h.

◆ TreeList_GetNextItem

#define TreeList_GetNextItem (   h,
  i,
  c 
)    TreeView_GetNextItem(h, i, c)

Definition at line 434 of file treelist.h.

◆ TreeList_GetNextSelected

#define TreeList_GetNextSelected (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_NEXTSELECTED)

Definition at line 439 of file treelist.h.

◆ TreeList_GetNextSelectedChild

#define TreeList_GetNextSelectedChild (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_NEXTSELCHILD)

Definition at line 440 of file treelist.h.

◆ TreeList_GetNextSibling

#define TreeList_GetNextSibling (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_NEXT)

Definition at line 437 of file treelist.h.

◆ TreeList_GetNextVisible

#define TreeList_GetNextVisible (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_NEXTVISIBLE)

Definition at line 441 of file treelist.h.

◆ TreeList_GetOption

#define TreeList_GetOption (   h,
  i 
)    ((INT )SNDMSG(h,TVM_GETSETOPTION,i,0))

Definition at line 421 of file treelist.h.

◆ TreeList_GetParent

#define TreeList_GetParent (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_PARENT)

Definition at line 436 of file treelist.h.

◆ TreeList_GetPrevSibling

#define TreeList_GetPrevSibling (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_PREVIOUS)

Definition at line 438 of file treelist.h.

◆ TreeList_GetPrevVisible

#define TreeList_GetPrevVisible (   h,
  i 
)    TreeView_GetNextItem(h, i, TVGN_PREVIOUSVISIBLE)

Definition at line 442 of file treelist.h.

◆ TreeList_GetRoot

#define TreeList_GetRoot (   h)    TreeView_GetNextItem(h, NULL, TVGN_ROOT)

Definition at line 448 of file treelist.h.

◆ TreeList_GetRowCount

#define TreeList_GetRowCount (   h)    ((INT )SNDMSG(h,TVM_GETROWCOUNT ,0,0))

Definition at line 373 of file treelist.h.

◆ TreeList_GetRowOfItem

#define TreeList_GetRowOfItem (   h,
  i 
)    ((INT )SNDMSG(h,TVM_GETROWOFITEM,0,(LPARAM)(i)))

Definition at line 372 of file treelist.h.

◆ TreeList_GetSelection

#define TreeList_GetSelection (   h)    TreeView_GetNextItem(h, NULL, TVGN_CARET)

Definition at line 444 of file treelist.h.

◆ TreeList_GetSelectionColumn

#define TreeList_GetSelectionColumn (   h)    ((int)TreeView_GetNextItem(h, NULL, TVGN_CARETSUB))

Definition at line 451 of file treelist.h.

◆ TreeList_GetStyle

#define TreeList_GetStyle (   h)    ((DWORD )::GetWindowLong(h,GWL_STYLE))

Definition at line 424 of file treelist.h.

◆ TreeList_GetUserData

#define TreeList_GetUserData (   h,
  i 
)    ((LPVOID )SNDMSG(h,TVM_GETUSERDATA,0,(LPARAM)(HTREEITEM)(i)))

Definition at line 398 of file treelist.h.

◆ TreeList_GetUserDataSize

#define TreeList_GetUserDataSize (   h)    ((INT )SNDMSG(h,TVM_GETUSERDATASIZE,0,0))

Definition at line 399 of file treelist.h.

◆ TreeList_GetVisibleCount

#define TreeList_GetVisibleCount   ((UINT )SNDMSG(h,TVM_GETVISIBLECOUNT,0,0))

Definition at line 402 of file treelist.h.

◆ TreeList_HitTest

#define TreeList_HitTest (   h,
  p 
)    ((HTREEITEM )SNDMSG(h,TVM_HITTEST,0,(LPARAM)(LPTV_HITTESTINFO)(p)))

Definition at line 370 of file treelist.h.

◆ TreeList_InsertColumn

#define TreeList_InsertColumn (   h,
  i,
  p 
)    ((INT )SNDMSG(h,TVM_INSERTCOLUMN,(WPARAM)(int)(i),(LPARAM)(const TV_COLUMN*)(p)))

Definition at line 368 of file treelist.h.

◆ TreeList_InsertItem

#define TreeList_InsertItem (   h,
  p 
)    ((HTREEITEM )SNDMSG(h,TVM_INSERTITEM,0,(LPARAM)(LPTV_INSERTSTRUCT)(p)))

Definition at line 403 of file treelist.h.

◆ TreeList_IsItemVisible

#define TreeList_IsItemVisible (   h,
  i,
  s 
)    ((INT )SNDMSG(h,TVM_ISITEMVISIBLE,s,(LPARAM)(HTREEITEM)(i)))

Definition at line 384 of file treelist.h.

◆ TreeList_Select

#define TreeList_Select (   h,
  i,
  c 
)    ((BOOL )SNDMSG(h,TVM_SELECTITEM,(WPARAM)(c),(LPARAM)(HTREEITEM)(i)))

Definition at line 390 of file treelist.h.

◆ TreeList_SelectChilds

#define TreeList_SelectChilds (   h,
  i,
  s 
)    ((BOOL )SNDMSG(h,TVM_SELECTCHILDS,(WPARAM)(s),(LPARAM)(HTREEITEM)(i)))

Definition at line 389 of file treelist.h.

◆ TreeList_SelectDropTarget

#define TreeList_SelectDropTarget (   h,
  i 
)    TreeList_Select(h,i,TVGN_DROPHILITE)

Definition at line 431 of file treelist.h.

◆ TreeList_SelectDropTargetEx

#define TreeList_SelectDropTargetEx (   h,
  i,
  s 
)    ((BOOL )SNDMSG(h,TVM_SELECTDROP,(WPARAM)(s),(LPARAM)(HTREEITEM)(i)))

Definition at line 387 of file treelist.h.

◆ TreeList_SelectItem

#define TreeList_SelectItem (   h,
  i 
)    TreeList_Select(h,i,TVGN_CARET)

Definition at line 430 of file treelist.h.

◆ TreeList_SelectSetFirstVisible

#define TreeList_SelectSetFirstVisible (   h,
  i 
)    TreeList_Select(h,i,TVGN_FIRSTVISIBLE)

Definition at line 432 of file treelist.h.

◆ TreeList_SelectSubItem

#define TreeList_SelectSubItem (   h,
  i,
  s 
)    ((BOOL )SNDMSG(h,TVM_SELECTSUBITEM,(WPARAM)(s),(LPARAM)(HTREEITEM)(i)))

Definition at line 388 of file treelist.h.

◆ TreeList_SetColor

#define TreeList_SetColor (   h,
  i,
  c 
)    ((COLORREF )SNDMSG(h,TVM_SETBKCOLOR,(WPARAM)(i),c))

Definition at line 379 of file treelist.h.

◆ TreeList_SetColumn

#define TreeList_SetColumn (   h,
  i,
  p 
)    ((BOOL )SNDMSG(h,TVM_SETCOLUMN,i,(LPARAM)(const TV_COLUMN*)(p)))

Definition at line 413 of file treelist.h.

◆ TreeList_SetColumnAutoEdit

#define TreeList_SetColumnAutoEdit (   h,
  i,
  f,
  p 
)    ((BOOL )SNDMSG(h,TVM_COLUMNAUTOEDIT,(WPARAM)((f)&~TVAE_COL(-1))|TVAE_COL(i),(LPARAM)(p)))

Definition at line 417 of file treelist.h.

◆ TreeList_SetColumnAutoIcon

#define TreeList_SetColumnAutoIcon (   h,
  i,
  n 
)    ((BOOL )SNDMSG(h,TVM_COLUMNAUTOICON,i,n))

Definition at line 418 of file treelist.h.

◆ TreeList_SetColumnOrderArray

#define TreeList_SetColumnOrderArray (   h,
  n,
  p 
)    ((BOOL )SNDMSG(h,TVM_SETCOLUMNORDERARRAY,n,(LPARAM)(p)))

Definition at line 422 of file treelist.h.

◆ TreeList_SetColumnWidth

#define TreeList_SetColumnWidth (   h,
  i,
  w 
)    ((BOOL )SNDMSG(h,TVM_SETCOLUMNWIDTH,i,w))

Definition at line 415 of file treelist.h.

◆ TreeList_SetExtendedStyle

#define TreeList_SetExtendedStyle (   h,
  d 
)    ((DWORD )SNDMSG(h,TVM_SETEXTENDEDSTYLE,0,d))

Definition at line 376 of file treelist.h.

◆ TreeList_SetExtendedStyleEx

#define TreeList_SetExtendedStyleEx (   h,
  d,
  m 
)    ((DWORD )SNDMSG(h,TVM_SETEXTENDEDSTYLE,m,d))

Definition at line 377 of file treelist.h.

◆ TreeList_SetFocusItem

#define TreeList_SetFocusItem (   h,
  i,
  c 
)    ((BOOL )SNDMSG(h,TVM_SETFOCUSITEM,c,(LPARAM)(i)))

Definition at line 419 of file treelist.h.

◆ TreeList_SetImageList

#define TreeList_SetImageList (   h,
  l,
  i 
)    ((HIMAGELIST)SNDMSG(h,TVM_SETIMAGELIST,i,(LPARAM)(HIMAGELIST)(l)))

Definition at line 407 of file treelist.h.

◆ TreeList_SetIndent

#define TreeList_SetIndent (   h,
  i 
)    ((BOOL )SNDMSG(h,TVM_SETINDENT,(WPARAM)(i),0))

Definition at line 408 of file treelist.h.

◆ TreeList_SetItem

#define TreeList_SetItem (   h,
  p 
)    ((BOOL )SNDMSG(h,TVM_SETITEM,0,(LPARAM)(const TV_ITEM*)(p)))

Definition at line 409 of file treelist.h.

◆ TreeList_SetItemBkColor

#define TreeList_SetItemBkColor (   h,
  i,
  s,
  c 
)    ((COLORREF )SNDMSG(h,TVM_SETITEMBKCOLOR,((UINT)(i))|((s)<<24),c))

Definition at line 381 of file treelist.h.

◆ TreeList_SetItemText

#define TreeList_SetItemText (   hwndLV,
  hItem_,
  iSubItem_,
  pszText_ 
)
Value:
{ \
TV_ITEM _ms_tvi; \
_ms_tvi.mask = TVIF_SUBITEM | TVIF_TEXT; \
_ms_tvi.hItem = (hItem_); \
_ms_tvi.stateMask = 0; \
_ms_tvi.pszText = (pszText_); \
_ms_tvi.cchTextMax = (pszText_) ? 256 : 0; \
_ms_tvi.cChildren = (iSubItem_); \
TreeList_SetItem((hwndLV), &_ms_tvi); \
}
#define TVIF_TEXT
Definition: commctrl.h:3266
#define TV_ITEM
Definition: commctrl.h:3300
#define TVIF_SUBITEM
Definition: treelist.h:102

Definition at line 467 of file treelist.h.

◆ TreeList_SetItemTextColor

#define TreeList_SetItemTextColor (   h,
  i,
  s,
  c 
)    ((COLORREF )SNDMSG(h,TVM_SETITEMTEXTCOLOR,((UINT)(i))|((s)<<24),c))

Definition at line 383 of file treelist.h.

◆ TreeList_SetOption

#define TreeList_SetOption (   h,
  i,
 
)    ((INT )SNDMSG(h,TVM_GETSETOPTION,(i)|TVOP_WRITEOPTION,(LPARAM)(o)))

Definition at line 420 of file treelist.h.

◆ TreeList_SetStyle

#define TreeList_SetStyle (   h,
  d 
)    ((DWORD )::SetWindowLong(h,GWL_STYLE,d))

Definition at line 425 of file treelist.h.

◆ TreeList_SetStyleEx

#define TreeList_SetStyleEx (   h,
  d,
  m 
)    ((DWORD )::SetWindowLong(h,GWL_STYLE,((d)&(m))|(::GetWindowLong(h,GWL_STYLE)&~(m))))

Definition at line 426 of file treelist.h.

◆ TreeList_SetUserDataSize

#define TreeList_SetUserDataSize (   h,
  s 
)    ((INT )SNDMSG(h,TVM_SETUSERDATASIZE,0,s))

Definition at line 400 of file treelist.h.

◆ TreeList_SortChildren

#define TreeList_SortChildren (   h,
  i,
  r 
)    ((BOOL )SNDMSG(h,TVM_SORTCHILDREN ,(WPARAM)r,(LPARAM)(HTREEITEM)(i)))

Definition at line 410 of file treelist.h.

◆ TreeList_SortChildrenCB

#define TreeList_SortChildrenCB (   h,
  p,
  r 
)    ((BOOL )SNDMSG(h,TVM_SORTCHILDRENCB,(WPARAM)r,(LPARAM)(LPTV_SORTCB)(p)))

Definition at line 411 of file treelist.h.

◆ TreeList_SortChildrenEX

#define TreeList_SortChildrenEX (   h,
  p,
  r 
)    ((BOOL )SNDMSG(h,TVM_SORTCHILDRENEX,(WPARAM)r,(LPARAM)(LPTV_SORTEX)(p)))

Definition at line 412 of file treelist.h.

◆ TreeList_StartEdit

#define TreeList_StartEdit (   h,
  i,
  s 
)    ((BOOL )SNDMSG(h,TVM_EDITLABEL,TVIR_EDITCOL(s)|TVLE_DONOTIFY,(LPARAM)(HTREEITEM)(i)))

Definition at line 392 of file treelist.h.

◆ TV_COLUMN

#define TV_COLUMN   LV_COLUMN

Definition at line 86 of file treelist.h.

◆ TV_FIND

#define TV_FIND   TVFIND

Definition at line 87 of file treelist.h.

◆ TV_NOAUTOEXPAND

#define TV_NOAUTOEXPAND   0x20000000

Definition at line 90 of file treelist.h.

◆ TV_NOCOLOR

#define TV_NOCOLOR   0xFFFFFFFF

Definition at line 89 of file treelist.h.

◆ TV_NOIMAGE

#define TV_NOIMAGE   (-2)

Definition at line 88 of file treelist.h.

◆ TV_SECONDICON

#define TV_SECONDICON   0x40000000

Definition at line 91 of file treelist.h.

◆ TV_UINICODE

#define TV_UINICODE   0

Definition at line 131 of file treelist.h.

◆ TVAE_CBLIST

#define TVAE_CBLIST   (3<<TVAE_MODEPOS)

Definition at line 196 of file treelist.h.

◆ TVAE_CHAR

#define TVAE_CHAR (   c)    (((c)&0xFF)<<17)

Definition at line 210 of file treelist.h.

◆ TVAE_CHECK

#define TVAE_CHECK   (6<<TVAE_MODEPOS)

Definition at line 199 of file treelist.h.

◆ TVAE_CHECKED

#define TVAE_CHECKED   (7<<TVAE_MODEPOS)

Definition at line 200 of file treelist.h.

◆ TVAE_COL

#define TVAE_COL (   c)    (((c)&0x3F)<<11)

Definition at line 209 of file treelist.h.

◆ TVAE_COMBO

#define TVAE_COMBO   (2<<TVAE_MODEPOS)

Definition at line 195 of file treelist.h.

◆ TVAE_COUNT

#define TVAE_COUNT (   c)    (((c)&0x7F)<<25)

Definition at line 211 of file treelist.h.

◆ TVAE_DBLCLICK

#define TVAE_DBLCLICK   0x0002

Definition at line 202 of file treelist.h.

◆ TVAE_DROPDOWN

#define TVAE_DROPDOWN   0x0080

Definition at line 208 of file treelist.h.

◆ TVAE_EDIT

#define TVAE_EDIT   (1<<TVAE_MODEPOS)

Definition at line 194 of file treelist.h.

◆ TVAE_FULLWIDTH

#define TVAE_FULLWIDTH   0x0004

Definition at line 203 of file treelist.h.

◆ TVAE_ICONCLICK

#define TVAE_ICONCLICK   0x0040

Definition at line 207 of file treelist.h.

◆ TVAE_MODEMASK

#define TVAE_MODEMASK   (7<<TVAE_MODEPOS)

Definition at line 212 of file treelist.h.

◆ TVAE_MODEPOS

#define TVAE_MODEPOS   0x0008

Definition at line 213 of file treelist.h.

◆ TVAE_NEXTLINE

#define TVAE_NEXTLINE   0x0001

Definition at line 201 of file treelist.h.

◆ TVAE_NONE

#define TVAE_NONE   (0<<TVAE_MODEPOS)

Definition at line 193 of file treelist.h.

◆ TVAE_ONLYRETURN

#define TVAE_ONLYRETURN   0x0010

Definition at line 205 of file treelist.h.

◆ TVAE_PTRLIST

#define TVAE_PTRLIST   0x0008

Definition at line 204 of file treelist.h.

◆ TVAE_STATEENABLE

#define TVAE_STATEENABLE   0x0020

Definition at line 206 of file treelist.h.

◆ TVAE_STEP

#define TVAE_STEP   (4<<TVAE_MODEPOS)

Definition at line 197 of file treelist.h.

◆ TVAE_STEPED

#define TVAE_STEPED   (5<<TVAE_MODEPOS)

Definition at line 198 of file treelist.h.

◆ TVC_BK

#define TVC_BK   0

Definition at line 137 of file treelist.h.

◆ TVC_BOX

#define TVC_BOX   6

Definition at line 143 of file treelist.h.

◆ TVC_BOXBG

#define TVC_BOXBG   11

Definition at line 149 of file treelist.h.

◆ TVC_CLASSNAME

#define TVC_CLASSNAME   "SysTreeList32"

Definition at line 134 of file treelist.h.

◆ TVC_COLBK

#define TVC_COLBK   12

Definition at line 150 of file treelist.h.

◆ TVC_COLEVEN

#define TVC_COLEVEN   14

Definition at line 152 of file treelist.h.

◆ TVC_COLODD

#define TVC_COLODD   13

Definition at line 151 of file treelist.h.

◆ TVC_EVEN

#define TVC_EVEN   2

Definition at line 139 of file treelist.h.

◆ TVC_FRAME

#define TVC_FRAME   3

Definition at line 140 of file treelist.h.

◆ TVC_GRAYED

#define TVC_GRAYED   15

Definition at line 153 of file treelist.h.

◆ TVC_INSERT

#define TVC_INSERT   10

Definition at line 148 of file treelist.h.

◆ TVC_LINE

#define TVC_LINE   5

Definition at line 142 of file treelist.h.

◆ TVC_MARK

#define TVC_MARK   8

Definition at line 145 of file treelist.h.

◆ TVC_MARKEVEN

#define TVC_MARKEVEN   9

Definition at line 147 of file treelist.h.

◆ TVC_MARKODD

#define TVC_MARKODD   8

Definition at line 146 of file treelist.h.

◆ TVC_ODD

#define TVC_ODD   1

Definition at line 138 of file treelist.h.

◆ TVC_TEXT

#define TVC_TEXT   4

Definition at line 141 of file treelist.h.

◆ TVC_TRACK

#define TVC_TRACK   7

Definition at line 144 of file treelist.h.

◆ TVCF_FIXED

#define TVCF_FIXED   0x40000000

Definition at line 177 of file treelist.h.

◆ TVCF_FMT

#define TVCF_FMT   LVCF_FMT

Definition at line 170 of file treelist.h.

◆ TVCF_IMAGE

#define TVCF_IMAGE   LVCF_IMAGE

Definition at line 171 of file treelist.h.

◆ TVCF_LASTSIZE

#define TVCF_LASTSIZE   0x44332211

Definition at line 178 of file treelist.h.

◆ TVCF_MARK

#define TVCF_MARK   0x80000000

Definition at line 176 of file treelist.h.

◆ TVCF_MIN

#define TVCF_MIN   LVCF_ORDER

Definition at line 175 of file treelist.h.

◆ TVCF_TEXT

#define TVCF_TEXT   LVCF_TEXT

Definition at line 172 of file treelist.h.

◆ TVCF_VWIDTH

#define TVCF_VWIDTH   LVCF_SUBITEM

Definition at line 174 of file treelist.h.

◆ TVCF_WIDTH

#define TVCF_WIDTH   LVCF_WIDTH

Definition at line 173 of file treelist.h.

◆ TVCFMT_BITMAP_ON_RIGHT

#define TVCFMT_BITMAP_ON_RIGHT   LVCFMT_BITMAP_ON_RIGHT

Definition at line 182 of file treelist.h.

◆ TVCFMT_CENTER

#define TVCFMT_CENTER   LVCFMT_CENTER

Definition at line 184 of file treelist.h.

◆ TVCFMT_COL_HAS_IMAGES

#define TVCFMT_COL_HAS_IMAGES   LVCFMT_COL_HAS_IMAGES

Definition at line 183 of file treelist.h.

◆ TVCFMT_FIXED

#define TVCFMT_FIXED   0x20000000

Definition at line 188 of file treelist.h.

◆ TVCFMT_IMAGE

#define TVCFMT_IMAGE   LVCFMT_IMAGE

Definition at line 185 of file treelist.h.

◆ TVCFMT_LEFT

#define TVCFMT_LEFT   LVCFMT_LEFT

Definition at line 186 of file treelist.h.

◆ TVCFMT_MARK

#define TVCFMT_MARK   0x10000000

Definition at line 189 of file treelist.h.

◆ TVCFMT_RIGHT

#define TVCFMT_RIGHT   LVCFMT_RIGHT

Definition at line 187 of file treelist.h.

◆ TVCOLUMN

#define TVCOLUMN   LV_COLUMN

Definition at line 85 of file treelist.h.

◆ TVE_ALLCHILDS

#define TVE_ALLCHILDS   (0x10000000)

Definition at line 113 of file treelist.h.

◆ TVE_EXPANDFORCE

#define TVE_EXPANDFORCE   (0x40000000)

Definition at line 111 of file treelist.h.

◆ TVE_EXPANDNEXT

#define TVE_EXPANDNEXT   (0x20000000)

Definition at line 112 of file treelist.h.

◆ TVE_EXPANDRECURSIVE

#define TVE_EXPANDRECURSIVE   (0x80000000)

Definition at line 110 of file treelist.h.

◆ TVE_ONLYCHILDS

#define TVE_ONLYCHILDS   (0x00000008)

Definition at line 114 of file treelist.h.

◆ TVGN_CARETSUB

#define TVGN_CARETSUB   0x000D

Definition at line 158 of file treelist.h.

◆ TVGN_DROPHILITESUB

#define TVGN_DROPHILITESUB   0x000C

Definition at line 157 of file treelist.h.

◆ TVGN_FOCUS

#define TVGN_FOCUS   0x000F

Definition at line 162 of file treelist.h.

◆ TVGN_FOCUSSUB

#define TVGN_FOCUSSUB   0x0010

Definition at line 163 of file treelist.h.

◆ TVGN_LASTCHILD

#define TVGN_LASTCHILD   0x0012

Definition at line 165 of file treelist.h.

◆ TVGN_NEXTITEM

#define TVGN_NEXTITEM   0x0013

Definition at line 166 of file treelist.h.

◆ TVGN_NEXTSELCHILD

#define TVGN_NEXTSELCHILD   0x0011

Definition at line 164 of file treelist.h.

◆ TVGN_NEXTSELECTED

#define TVGN_NEXTSELECTED   0x000E

Definition at line 160 of file treelist.h.

◆ TVHT_ONRIGHTSPACE

#define TVHT_ONRIGHTSPACE   0x00800000

Definition at line 220 of file treelist.h.

◆ TVHT_ONSUBICON

#define TVHT_ONSUBICON   0x00200000

Definition at line 222 of file treelist.h.

◆ TVHT_ONSUBITEM

#define TVHT_ONSUBITEM   (TVHT_ONSUBICON|TVHT_ONSUBLABEL)

Definition at line 224 of file treelist.h.

◆ TVHT_ONSUBLABEL

#define TVHT_ONSUBLABEL   0x00400000

Definition at line 221 of file treelist.h.

◆ TVHT_ONSUBRIGHT

#define TVHT_ONSUBRIGHT   0x00100000

Definition at line 223 of file treelist.h.

◆ TVHT_SUBMASK

#define TVHT_SUBMASK   0xFF000000

Definition at line 219 of file treelist.h.

◆ TVHT_SUBTOCOL

#define TVHT_SUBTOCOL (   u)    (((unsigned)u)>>24)

Definition at line 218 of file treelist.h.

◆ TVI_AFTER

#define TVI_AFTER   ((HTREEITEM)(ULONG_PTR)0xFFFF0005)

Definition at line 117 of file treelist.h.

◆ TVI_BEFORE

#define TVI_BEFORE   ((HTREEITEM)(ULONG_PTR)0xFFFF0006)

Definition at line 116 of file treelist.h.

◆ TVI_ROW

#define TVI_ROW (   n)    ((HTREEITEM)(ULONG_PTR)(0xFFE00000+(n)))

Definition at line 118 of file treelist.h.

◆ TVI_SORTEX

#define TVI_SORTEX   ((HTREEITEM)(ULONG_PTR)0xFFFF0007)

Definition at line 115 of file treelist.h.

◆ TVIF_CANCELED

#define TVIF_CANCELED   0x01000000

Definition at line 100 of file treelist.h.

◆ TVIF_CASE

#define TVIF_CASE   0x08000000

Definition at line 97 of file treelist.h.

◆ TVIF_CHILD

#define TVIF_CHILD   0x02000000

Definition at line 99 of file treelist.h.

◆ TVIF_NEXT

#define TVIF_NEXT   0x04000000

Definition at line 98 of file treelist.h.

◆ TVIF_ONLYFOCUS

#define TVIF_ONLYFOCUS   0x00800000

Definition at line 101 of file treelist.h.

◆ TVIF_RETURNEXIT

#define TVIF_RETURNEXIT   0x10000000

Definition at line 96 of file treelist.h.

◆ TVIF_SUBITEM

#define TVIF_SUBITEM   0x8000

Definition at line 102 of file treelist.h.

◆ TVIF_SUBNUMBER

#define TVIF_SUBNUMBER   0x4000

Definition at line 103 of file treelist.h.

◆ TVIF_TEXTCHANGED

#define TVIF_TEXTCHANGED   0x20000000

Definition at line 95 of file treelist.h.

◆ TVIF_TEXTPTR

#define TVIF_TEXTPTR   0x80000000

Definition at line 93 of file treelist.h.

◆ TVIF_TOOLTIPTIME

#define TVIF_TOOLTIPTIME   0x40000000

Definition at line 94 of file treelist.h.

◆ TVIR_COLTOSUB

#define TVIR_COLTOSUB (   u)    ((u)<<24)

Definition at line 228 of file treelist.h.

◆ TVIR_EDITCOL

#define TVIR_EDITCOL (   u)    ((u)&0xFF)

Definition at line 250 of file treelist.h.

◆ TVIR_EDITCOMBOBOX

#define TVIR_EDITCOMBOBOX   0x20000000

Definition at line 246 of file treelist.h.

◆ TVIR_EDITCOMBOCHAR

#define TVIR_EDITCOMBOCHAR (   n)    (((n)&0xFF)<<8)

Definition at line 243 of file treelist.h.

◆ TVIR_EDITCOMBODEL

#define TVIR_EDITCOMBODEL   0x00000080

Definition at line 244 of file treelist.h.

◆ TVIR_EDITCOMBODOWN

#define TVIR_EDITCOMBODOWN   0x10000000

Definition at line 245 of file treelist.h.

◆ TVIR_EDITCOMBOLIST

#define TVIR_EDITCOMBOLIST   0x40000000

Definition at line 247 of file treelist.h.

◆ TVIR_EDITFULL

#define TVIR_EDITFULL   0x80000000

Definition at line 248 of file treelist.h.

◆ TVIR_EDITTEXT

#define TVIR_EDITTEXT   0x00000001

Definition at line 249 of file treelist.h.

◆ TVIR_GETCOLUMN

#define TVIR_GETCOLUMN   0x00000080

Definition at line 229 of file treelist.h.

◆ TVIR_SELALL

#define TVIR_SELALL   0x00000000

Definition at line 251 of file treelist.h.

◆ TVIR_SELAREA

#define TVIR_SELAREA (   a,
  b 
)    ((0x0C0000|(a&0x1FF)|((b&0x1FF)<<9))<<8)

Definition at line 253 of file treelist.h.

◆ TVIR_SETAT

#define TVIR_SETAT (   a)    ((0x040000|(a&0x3FFFF))<<8)

Definition at line 255 of file treelist.h.

◆ TVIR_SETCURSOR

#define TVIR_SETCURSOR (   a)    ((0x080000|(a&0x3FFFF))<<8)

Definition at line 254 of file treelist.h.

◆ TVIR_TEXT

#define TVIR_TEXT   0x00000001

Definition at line 230 of file treelist.h.

◆ TVIS_DESELECT

#define TVIS_DESELECT   0x00000002

Definition at line 235 of file treelist.h.

◆ TVIS_DISABLEBIT

#define TVIS_DISABLEBIT   0x8000

Definition at line 214 of file treelist.h.

◆ TVIS_UNDERLINE

#define TVIS_UNDERLINE   0x0001

Definition at line 104 of file treelist.h.

◆ TVIS_WITHCHILDS

#define TVIS_WITHCHILDS   0x00000001

Definition at line 234 of file treelist.h.

◆ TVLE_DONOTIFY

#define TVLE_DONOTIFY   0xF5A5A500

Definition at line 92 of file treelist.h.

◆ TVM_COLUMNAUTOEDIT

#define TVM_COLUMNAUTOEDIT   (TV_FIRST+128-25-TV_UINICODE)

Definition at line 325 of file treelist.h.

◆ TVM_COLUMNAUTOICON

#define TVM_COLUMNAUTOICON   (TV_FIRST+128-27)

Definition at line 326 of file treelist.h.

◆ TVM_DELETECOLUMN

#define TVM_DELETECOLUMN   (TV_FIRST+128-3)

Definition at line 306 of file treelist.h.

◆ TVM_FINDITEM

#define TVM_FINDITEM   (TV_FIRST+128-29-TV_UINICODE)

Definition at line 328 of file treelist.h.

◆ TVM_GETCOLUMN

#define TVM_GETCOLUMN   (TV_FIRST+128-17-TV_UINICODE)

Definition at line 318 of file treelist.h.

◆ TVM_GETCOLUMNCOUNT

#define TVM_GETCOLUMNCOUNT   (TV_FIRST+128-2)

Definition at line 305 of file treelist.h.

◆ TVM_GETCOLUMNORDERARRAY

#define TVM_GETCOLUMNORDERARRAY   (TV_FIRST+128-35)

Definition at line 333 of file treelist.h.

◆ TVM_GETCOLUMNWIDTH

#define TVM_GETCOLUMNWIDTH   (TV_FIRST+128-20)

Definition at line 320 of file treelist.h.

◆ TVM_GETCOUNTPERPAGE

#define TVM_GETCOUNTPERPAGE   (TV_FIRST+128-28)

Definition at line 327 of file treelist.h.

◆ TVM_GETEXTENDEDSTYLE

#define TVM_GETEXTENDEDSTYLE   (TV_FIRST+45)

Definition at line 339 of file treelist.h.

◆ TVM_GETHEADER

#define TVM_GETHEADER   (TV_FIRST+128-1)

Definition at line 304 of file treelist.h.

◆ TVM_GETITEMBKCOLOR

#define TVM_GETITEMBKCOLOR   (TV_FIRST+128-9)

Definition at line 311 of file treelist.h.

◆ TVM_GETITEMOFROW

#define TVM_GETITEMOFROW   (TV_FIRST+128-12)

Definition at line 314 of file treelist.h.

◆ TVM_GETITEMSTATE

#define TVM_GETITEMSTATE   (TV_FIRST+39)

Definition at line 336 of file treelist.h.

◆ TVM_GETITEMTEXTCOLOR

#define TVM_GETITEMTEXTCOLOR   (TV_FIRST+128-11)

Definition at line 313 of file treelist.h.

◆ TVM_GETLINECOLOR

#define TVM_GETLINECOLOR   (TV_FIRST+41)

Definition at line 345 of file treelist.h.

◆ TVM_GETROWCOUNT

#define TVM_GETROWCOUNT   (TV_FIRST+128-13)

Definition at line 315 of file treelist.h.

◆ TVM_GETROWOFITEM

#define TVM_GETROWOFITEM   (TV_FIRST+128-14)

Definition at line 316 of file treelist.h.

◆ TVM_GETSETOPTION

#define TVM_GETSETOPTION   (TV_FIRST+128-32)

Definition at line 330 of file treelist.h.

◆ TVM_GETUSERDATA

#define TVM_GETUSERDATA   (TV_FIRST+128-23)

Definition at line 323 of file treelist.h.

◆ TVM_GETUSERDATASIZE

#define TVM_GETUSERDATASIZE   (TV_FIRST+128-22)

Definition at line 322 of file treelist.h.

◆ TVM_INSERTCOLUMN

#define TVM_INSERTCOLUMN   (TV_FIRST+128-4-TV_UINICODE)

Definition at line 307 of file treelist.h.

◆ TVM_ISITEMVISIBLE

#define TVM_ISITEMVISIBLE   (TV_FIRST+128-33)

Definition at line 331 of file treelist.h.

◆ TVM_SELECTCHILDS

#define TVM_SELECTCHILDS   (TV_FIRST+128-31)

Definition at line 329 of file treelist.h.

◆ TVM_SELECTDROP

#define TVM_SELECTDROP   (TV_FIRST+128-7)

Definition at line 309 of file treelist.h.

◆ TVM_SELECTSUBITEM

#define TVM_SELECTSUBITEM   (TV_FIRST+128-6)

Definition at line 308 of file treelist.h.

◆ TVM_SETCOLUMN

#define TVM_SETCOLUMN   (TV_FIRST+128-15-TV_UINICODE)

Definition at line 317 of file treelist.h.

◆ TVM_SETCOLUMNORDERARRAY

#define TVM_SETCOLUMNORDERARRAY   (TV_FIRST+128-36)

Definition at line 334 of file treelist.h.

◆ TVM_SETCOLUMNWIDTH

#define TVM_SETCOLUMNWIDTH   (TV_FIRST+128-19)

Definition at line 319 of file treelist.h.

◆ TVM_SETEXTENDEDSTYLE

#define TVM_SETEXTENDEDSTYLE   (TV_FIRST+44)

Definition at line 342 of file treelist.h.

◆ TVM_SETFOCUSITEM

#define TVM_SETFOCUSITEM   (TV_FIRST+128-34)

Definition at line 332 of file treelist.h.

◆ TVM_SETITEMBKCOLOR

#define TVM_SETITEMBKCOLOR   (TV_FIRST+128-8)

Definition at line 310 of file treelist.h.

◆ TVM_SETITEMTEXTCOLOR

#define TVM_SETITEMTEXTCOLOR   (TV_FIRST+128-10)

Definition at line 312 of file treelist.h.

◆ TVM_SETLINECOLOR

#define TVM_SETLINECOLOR   (TV_FIRST+40)

Definition at line 348 of file treelist.h.

◆ TVM_SETUSERDATASIZE

#define TVM_SETUSERDATASIZE   (TV_FIRST+128-21)

Definition at line 321 of file treelist.h.

◆ TVM_SORTCHILDRENEX

#define TVM_SORTCHILDRENEX   (TV_FIRST+128-24)

Definition at line 324 of file treelist.h.

◆ TVN_CBSTATECHANGED

#define TVN_CBSTATECHANGED   (TVN_FIRST-33)

Definition at line 295 of file treelist.h.

◆ TVN_COLUMNCHANGED

#define TVN_COLUMNCHANGED   (TVN_FIRST-38)

Definition at line 300 of file treelist.h.

◆ TVN_COLUMNCLICK

#define TVN_COLUMNCLICK   HDN_ITEMCLICK

Definition at line 108 of file treelist.h.

◆ TVN_COLUMNDBLCLICK

#define TVN_COLUMNDBLCLICK   HDN_ITEMDBLCLICK

Definition at line 109 of file treelist.h.

◆ TVN_ITEMTOOLTIP

#define TVN_ITEMTOOLTIP   (TVN_FIRST-32)

Definition at line 294 of file treelist.h.

◆ TVN_LBUTTONUP

#define TVN_LBUTTONUP   (TVN_FIRST-36)

Definition at line 298 of file treelist.h.

◆ TVN_RBUTTONUP

#define TVN_RBUTTONUP   (TVN_FIRST-37)

Definition at line 299 of file treelist.h.

◆ TVN_STARTEDIT

#define TVN_STARTEDIT   (TVN_FIRST-35)

Definition at line 297 of file treelist.h.

◆ TVN_STEPSTATECHANGED

#define TVN_STEPSTATECHANGED   (TVN_FIRST-34)

Definition at line 296 of file treelist.h.

◆ TVNRET_DEFAULT

#define TVNRET_DEFAULT   0

Definition at line 353 of file treelist.h.

◆ TVNRET_SKIPNEW

#define TVNRET_SKIPNEW   2

Definition at line 359 of file treelist.h.

◆ TVNRET_SKIPOLD

#define TVNRET_SKIPOLD   1

Definition at line 356 of file treelist.h.

◆ TVOP_AUTOEXPANDOFF

#define TVOP_AUTOEXPANDOFF   0x00000001

Definition at line 238 of file treelist.h.

◆ TVOP_WRITEOPTION

#define TVOP_WRITEOPTION   0x80000000

Definition at line 239 of file treelist.h.

◆ TVS_EX_ALTERNATECOLOR

#define TVS_EX_ALTERNATECOLOR   0x00020000

Definition at line 270 of file treelist.h.

◆ TVS_EX_AUTOEXPANDICON

#define TVS_EX_AUTOEXPANDICON   0x00200000

Definition at line 274 of file treelist.h.

◆ TVS_EX_AUTOHSCROLL

#define TVS_EX_AUTOHSCROLL   0x00000020

Definition at line 289 of file treelist.h.

◆ TVS_EX_BITCHECKBOX

#define TVS_EX_BITCHECKBOX   0x00008000

Definition at line 268 of file treelist.h.

◆ TVS_EX_EDITCLICK

#define TVS_EX_EDITCLICK   0x40000000

Definition at line 283 of file treelist.h.

◆ TVS_EX_FIXEDCOLSIZE

#define TVS_EX_FIXEDCOLSIZE   0x08000000

Definition at line 280 of file treelist.h.

◆ TVS_EX_FULLROWITEMS

#define TVS_EX_FULLROWITEMS   0x04000000

Definition at line 279 of file treelist.h.

◆ TVS_EX_FULLROWMARK

#define TVS_EX_FULLROWMARK   0x00080000

Definition at line 272 of file treelist.h.

◆ TVS_EX_GRAYEDDISABLE

#define TVS_EX_GRAYEDDISABLE   0x02000000

Definition at line 278 of file treelist.h.

◆ TVS_EX_HEADERCHGNOTIFY

#define TVS_EX_HEADERCHGNOTIFY   0x00000800

Definition at line 264 of file treelist.h.

◆ TVS_EX_HEADERDRAGDROP

#define TVS_EX_HEADERDRAGDROP   0x00001000

Definition at line 265 of file treelist.h.

◆ TVS_EX_HEADEROWNIMGLIST

#define TVS_EX_HEADEROWNIMGLIST   0x00000400

Definition at line 263 of file treelist.h.

◆ TVS_EX_HIDEHEADERS

#define TVS_EX_HIDEHEADERS   0x01000000

Definition at line 277 of file treelist.h.

◆ TVS_EX_HOMEENDSELECT

#define TVS_EX_HOMEENDSELECT   0x10000000

Definition at line 281 of file treelist.h.

◆ TVS_EX_ITEMLINES

#define TVS_EX_ITEMLINES   0x00010000

Definition at line 269 of file treelist.h.

◆ TVS_EX_MULTISELECT

#define TVS_EX_MULTISELECT   0x00000002

Definition at line 286 of file treelist.h.

◆ TVS_EX_NOCHARSELCET

#define TVS_EX_NOCHARSELCET   0x00400000

Definition at line 275 of file treelist.h.

◆ TVS_EX_NOCOLUMNRESIZE

#define TVS_EX_NOCOLUMNRESIZE   0x00800000

Definition at line 276 of file treelist.h.

◆ TVS_EX_NOCURSORSET

#define TVS_EX_NOCURSORSET   0x80000000

Definition at line 284 of file treelist.h.

◆ TVS_EX_SHAREIMAGELISTS

#define TVS_EX_SHAREIMAGELISTS   0x20000000

Definition at line 282 of file treelist.h.

◆ TVS_EX_SINGLECHECKBOX

#define TVS_EX_SINGLECHECKBOX   0x00002000

Definition at line 266 of file treelist.h.

◆ TVS_EX_STEPOUT

#define TVS_EX_STEPOUT   0x00004000

Definition at line 267 of file treelist.h.

◆ TVS_EX_SUBSELECT

#define TVS_EX_SUBSELECT   0x00040000

Definition at line 271 of file treelist.h.

◆ TVS_EX_TOOLTIPNOTIFY

#define TVS_EX_TOOLTIPNOTIFY   0x00100000

Definition at line 273 of file treelist.h.

◆ TVSIL_CHECK

#define TVSIL_CHECK   0x0003

Definition at line 105 of file treelist.h.

◆ TVSIL_HEADER

#define TVSIL_HEADER   0x0005

Definition at line 107 of file treelist.h.

◆ TVSIL_SUBIMAGES

#define TVSIL_SUBIMAGES   0x0004

Definition at line 106 of file treelist.h.

◆ VK_DBLCLK

#define VK_DBLCLK   0x10000

Definition at line 120 of file treelist.h.

◆ VK_EDITCLK

#define VK_EDITCLK   0x10002

Definition at line 126 of file treelist.h.

◆ VK_ICONCLK

#define VK_ICONCLK   0x10001

Definition at line 123 of file treelist.h.

Typedef Documentation

◆ hItem

typedef HTREEITEM hItem

Definition at line 37 of file treelist.h.

◆ lParamInsert

Definition at line 37 of file treelist.h.

◆ lParamItem

Definition at line 37 of file treelist.h.

◆ LPTV_COLSIZE

◆ LPTV_KEYDOWN_EX

◆ LPTV_SORTEX

Definition at line 81 of file treelist.h.

◆ LPTV_STARTEDIT

◆ LPTVFIND

typedef struct _TVFIND * LPTVFIND

◆ LPTVSORTEX

typedef TVSORTEX * LPTVSORTEX

Definition at line 80 of file treelist.h.

◆ PFNTVCOMPAREEX

typedef int(CALLBACK * PFNTVCOMPAREEX) (HWND hWnd, HTREEITEM hItem1, HTREEITEM hItem2, LPARAM lParam1, LPARAM lParam2, LPARAM lParam)

Definition at line 36 of file treelist.h.

◆ pTextInsert

Definition at line 37 of file treelist.h.

◆ pTextItem

Definition at line 37 of file treelist.h.

◆ TV_COLSIZE

◆ TV_KEYDOWN_EX

◆ TV_SORTEX

Definition at line 82 of file treelist.h.

◆ TV_STARTEDIT

◆ TVFIND

◆ TVSORTEX

Function Documentation

◆ int()

typedef int ( CALLBACK PFNTVSORTEX)

◆ TreeListRegister()

int TreeListRegister ( HINSTANCE  hInstance)

Definition at line 394 of file treelist.c.

394 {
395
396 static int iIsRegistered = FALSE;
397 WNDCLASSEX sClass;
398
399 OutputDebugString(TEXT("TreeListRegister() - before checking\n"));
400
401 if(iIsRegistered)
402 return TRUE;
403
404 OutputDebugString(TEXT("TreeListRegister() - before registration\n"));
405
406 memset(&sClass, 0, sizeof(sClass));
407 sClass.cbSize = sizeof(sClass);
409 sClass.lpfnWndProc = TreeListProc;
410 sClass.cbClsExtra = 0;
411 sClass.cbWndExtra = sizeof(TreeListData *);
412 sClass.hInstance = hInstance;
413 sClass.hIcon = NULL;
414 sClass.hCursor = LoadCursor(NULL, IDC_ARROW);
415 sClass.hbrBackground = NULL;
416 sClass.lpszMenuName = NULL;
417 sClass.hIconSm = NULL;
419
420 if(!RegisterClassEx(&sClass))
421 return 0;
422
423 OutputDebugString(TEXT("TreeListRegister() - registration done\n"));
424 iIsRegistered = TRUE;
425
426 return TRUE;
427}
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define TEXT(s)
Definition: k32.h:26
#define memset(x, y, z)
Definition: compat.h:39
int cbClsExtra
Definition: winuser.h:3204
HINSTANCE hInstance
Definition: winuser.h:3206
HCURSOR hCursor
Definition: winuser.h:3208
LPCSTR lpszMenuName
Definition: winuser.h:3210
HICON hIconSm
Definition: winuser.h:3212
UINT style
Definition: winuser.h:3202
int cbWndExtra
Definition: winuser.h:3205
UINT cbSize
Definition: winuser.h:3201
WNDPROC lpfnWndProc
Definition: winuser.h:3203
LPCSTR lpszClassName
Definition: winuser.h:3211
HICON hIcon
Definition: winuser.h:3207
HBRUSH hbrBackground
Definition: winuser.h:3209
static LRESULT CALLBACK TreeListProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: treelist.c:10028
#define TVC_CLASSNAME
Definition: treelist.h:134
#define _T(x)
Definition: vfdio.h:22
#define OutputDebugString
Definition: winbase.h:3890
#define IDC_ARROW
Definition: winuser.h:687
#define CS_DBLCLKS
Definition: winuser.h:651
#define RegisterClassEx
Definition: winuser.h:5837
#define LoadCursor
Definition: winuser.h:5812
#define CS_GLOBALCLASS
Definition: winuser.h:652

Referenced by _tWinMain().

◆ TreeListUnregister()

BOOL TreeListUnregister ( HINSTANCE  hInstance)

Definition at line 429 of file treelist.c.

429 {
431}
#define UnregisterClass
Definition: winuser.h:5861

Referenced by _tWinMain().