19 #ifndef MCTRL_TREELIST_H 20 #define MCTRL_TREELIST_H 205 #define MC_WC_TREELISTW L"mCtrl.treelist" 207 #define MC_WC_TREELISTA "mCtrl.treelist" 220 #define MC_TLS_HASBUTTONS 0x0001 222 #define MC_TLS_HASLINES 0x0002 226 #define MC_TLS_LINESATROOT 0x0004 228 #define MC_TLS_GRIDLINES 0x0008 230 #define MC_TLS_SHOWSELALWAYS 0x0010 233 #define MC_TLS_FULLROWSELECT 0x0020 236 #define MC_TLS_NONEVENHEIGHT 0x0040 238 #define MC_TLS_DOUBLEBUFFER 0x0080 240 #define MC_TLS_NOCOLUMNHEADER 0x0100 243 #define MC_TLS_HEADERDRAGDROP 0x0200 249 #define MC_TLS_SINGLEEXPAND 0x0400 253 #define MC_TLS_MULTISELECT 0x0800 255 #define MC_TLS_NOTOOLTIPS 0x1000 258 #define MC_TLS_CHECKBOXES 0x2000 259 #define MC_TLS_EDITLABELS 0x4000 260 #define MC_TLS_EDITSUBLABELS 0x8000 273 #define MC_TLCF_FORMAT (1 << 0) 275 #define MC_TLCF_WIDTH (1 << 1) 278 #define MC_TLCF_TEXT (1 << 2) 280 #define MC_TLCF_IMAGE (1 << 3) 282 #define MC_TLCF_ORDER (1 << 4) 294 #define MC_TLFMT_LEFT 0x0 296 #define MC_TLFMT_RIGHT 0x1 298 #define MC_TLFMT_CENTER 0x2 300 #define MC_TLFMT_JUSTIFYMASK 0x3 316 #define MC_TLI_ROOT ((MC_HTREELISTITEM)(ULONG_PTR) -0x10000) 323 #define MC_TLI_FIRST ((MC_HTREELISTITEM)(ULONG_PTR) -0xffff) 330 #define MC_TLI_LAST ((MC_HTREELISTITEM)(ULONG_PTR) -0xfffe) 342 #define MC_TLIF_STATE (1 << 0) 344 #define MC_TLIF_TEXT (1 << 1) 346 #define MC_TLIF_PARAM (1 << 2) 349 #define MC_TLIF_LPARAM (1 << 2) 351 #define MC_TLIF_IMAGE (1 << 3) 353 #define MC_TLIF_SELECTEDIMAGE (1 << 4) 355 #define MC_TLIF_EXPANDEDIMAGE (1 << 5) 357 #define MC_TLIF_CHILDREN (1 << 6) 368 #define MC_TLIS_SELECTED (1 << 1) 370 #define MC_TLIS_EXPANDED (1 << 5) 385 #define MC_TLSIF_TEXT (1 << 1) 397 #define MC_TLHT_NOWHERE (1 << 0) 399 #define MC_TLHT_ONITEMICON (1 << 1) 401 #define MC_TLHT_ONITEMSTATEICON (1 << 2) 403 #define MC_TLHT_ONITEMLABEL (1 << 3) 405 #define MC_TLHT_ONITEM (MC_TLHT_ONITEMICON | MC_TLHT_ONITEMSTATEICON | MC_TLHT_ONITEMLABEL) 407 #define MC_TLHT_ONITEMINDENT (1 << 4) 409 #define MC_TLHT_ONITEMBUTTON (1 << 5) 411 #define MC_TLHT_ONITEMRIGHT (1 << 6) 414 #define MC_TLHT_ONITEMLEFT (1 << 7) 416 #define MC_TLHT_ABOVE (1 << 8) 418 #define MC_TLHT_BELOW (1 << 9) 420 #define MC_TLHT_TORIGHT (1 << 10) 422 #define MC_TLHT_TOLEFT (1 << 11) 434 #define MC_TLE_COLLAPSE 0x1 436 #define MC_TLE_EXPAND 0x2 438 #define MC_TLE_TOGGLE 0x3 441 #define MC_TLE_COLLAPSERESET 0x8000 453 #define MC_TLGN_ROOT 0x0 456 #define MC_TLGN_NEXT 0x1 459 #define MC_TLGN_PREVIOUS 0x2 462 #define MC_TLGN_PARENT 0x3 465 #define MC_TLGN_CHILD 0x4 469 #define MC_TLGN_FIRSTVISIBLE 0x5 474 #define MC_TLGN_NEXTVISIBLE 0x6 481 #define MC_TLGN_PREVIOUSVISIBLE 0x7 488 #define MC_TLGN_CARET 0x9 493 #define MC_TLGN_LASTVISIBLE 0xa 506 #define MC_TLIR_BOUNDS 0 508 #define MC_TLIR_ICON 1 510 #define MC_TLIR_LABEL 2 513 #define MC_TLIR_SELECTBOUNDS 3 527 typedef struct MC_TLCOLUMNW_tag {
551 typedef struct MC_TLCOLUMNA_tag {
581 typedef struct MC_TLITEMW_tag {
613 typedef struct MC_TLITEMA_tag {
645 typedef struct MC_TLSUBITEMW_tag {
662 typedef struct MC_TLSUBITEMA_tag {
679 typedef struct MC_TLINSERTSTRUCTW_tag {
693 typedef struct MC_TLINSERTSTRUCTA_tag {
706 typedef struct MC_TLHITTESTINFO_tag {
731 typedef struct MC_NMTREELIST_tag {
749 typedef struct MC_NMTLCUSTOMDRAW_tag {
768 typedef struct MC_NMTLDISPINFOW_tag {
781 typedef struct MC_NMTLDISPINFOA_tag {
794 typedef struct MC_NMTLSUBDISPINFOW_tag {
809 typedef struct MC_NMTLSUBDISPINFOA_tag {
834 #define MC_TLM_INSERTCOLUMNW (MC_TLM_FIRST + 0) 842 #define MC_TLM_INSERTCOLUMNA (MC_TLM_FIRST + 1) 850 #define MC_TLM_SETCOLUMNW (MC_TLM_FIRST + 2) 858 #define MC_TLM_SETCOLUMNA (MC_TLM_FIRST + 3) 866 #define MC_TLM_GETCOLUMNW (MC_TLM_FIRST + 4) 874 #define MC_TLM_GETCOLUMNA (MC_TLM_FIRST + 5) 882 #define MC_TLM_DELETECOLUMN (MC_TLM_FIRST + 6) 891 #define MC_TLM_SETCOLUMNORDERARRAY (MC_TLM_FIRST + 7) 901 #define MC_TLM_GETCOLUMNORDERARRAY (MC_TLM_FIRST + 8) 909 #define MC_TLM_SETCOLUMNWIDTH (MC_TLM_FIRST + 9) 917 #define MC_TLM_GETCOLUMNWIDTH (MC_TLM_FIRST + 10) 933 #define MC_TLM_INSERTITEMW (MC_TLM_FIRST + 11) 949 #define MC_TLM_INSERTITEMA (MC_TLM_FIRST + 12) 958 #define MC_TLM_SETITEMW (MC_TLM_FIRST + 13) 967 #define MC_TLM_SETITEMA (MC_TLM_FIRST + 14) 983 #define MC_TLM_GETITEMW (MC_TLM_FIRST + 15) 999 #define MC_TLM_GETITEMA (MC_TLM_FIRST + 16) 1012 #define MC_TLM_DELETEITEM (MC_TLM_FIRST + 17) 1025 #define MC_TLM_SETITEMHEIGHT (MC_TLM_FIRST + 18) 1033 #define MC_TLM_GETITEMHEIGHT (MC_TLM_FIRST + 19) 1042 #define MC_TLM_SETSUBITEMW (MC_TLM_FIRST + 20) 1051 #define MC_TLM_SETSUBITEMA (MC_TLM_FIRST + 21) 1068 #define MC_TLM_GETSUBITEMW (MC_TLM_FIRST + 22) 1085 #define MC_TLM_GETSUBITEMA (MC_TLM_FIRST + 23) 1093 #define MC_TLM_SETINDENT (MC_TLM_FIRST + 24) 1101 #define MC_TLM_GETINDENT (MC_TLM_FIRST + 25) 1111 #define MC_TLM_HITTEST (MC_TLM_FIRST + 26) 1119 #define MC_TLM_EXPAND (MC_TLM_FIRST + 27) 1129 #define MC_TLM_GETNEXTITEM (MC_TLM_FIRST + 28) 1137 #define MC_TLM_GETVISIBLECOUNT (MC_TLM_FIRST + 29) 1147 #define MC_TLM_ENSUREVISIBLE (MC_TLM_FIRST + 30) 1161 #define MC_TLM_SETIMAGELIST (MC_TLM_FIRST + 31) 1170 #define MC_TLM_GETIMAGELIST (MC_TLM_FIRST + 32) 1179 #define MC_TLM_GETSELECTEDCOUNT (MC_TLM_FIRST + 33) 1190 #define MC_TLM_GETITEMRECT (MC_TLM_FIRST + 34) 1201 #define MC_TLM_GETSUBITEMRECT (MC_TLM_FIRST + 35) 1211 #define MC_TLM_SETTOOLTIPS (MC_TLM_FIRST + 36) 1220 #define MC_TLM_GETTOOLTIPS (MC_TLM_FIRST + 37) 1241 #define MC_TLN_DELETEITEM (MC_TLN_FIRST + 0) 1262 #define MC_TLN_SELCHANGING (MC_TLN_FIRST + 1) 1282 #define MC_TLN_SELCHANGED (MC_TLN_FIRST + 2) 1298 #define MC_TLN_EXPANDING (MC_TLN_FIRST + 3) 1313 #define MC_TLN_EXPANDED (MC_TLN_FIRST + 4) 1316 #define MC_TLN_SETDISPINFOW (MC_TLN_FIRST + 5) 1317 #define MC_TLN_SETDISPINFOA (MC_TLN_FIRST + 6) 1343 #define MC_TLN_GETDISPINFOW (MC_TLN_FIRST + 7) 1368 #define MC_TLN_GETDISPINFOA (MC_TLN_FIRST + 8) 1371 #define MC_TLN_SETSUBDISPINFOW (MC_TLN_FIRST + 9) 1372 #define MC_TLN_SETSUBDISPINFOA (MC_TLN_FIRST + 10) 1398 #define MC_TLN_GETSUBDISPINFOW (MC_TLN_FIRST + 11) 1423 #define MC_TLN_GETSUBDISPINFOA (MC_TLN_FIRST + 12) 1434 #define MC_WC_TREELIST MCTRL_NAME_AW(MC_WC_TREELIST) 1436 #define MC_TLCOLUMN MCTRL_NAME_AW(MC_TLCOLUMN) 1438 #define MC_TLITEM MCTRL_NAME_AW(MC_TLITEM) 1440 #define MC_TLSUBITEM MCTRL_NAME_AW(MC_TLSUBITEM) 1442 #define MC_TLINSERTSTRUCT MCTRL_NAME_AW(MC_TLINSERTSTRUCT) 1444 #define MC_NMTLDISPINFO MCTRL_NAME_AW(MC_NMTLDISPINFO) 1446 #define MC_NMTLSUBDISPINFO MCTRL_NAME_AW(MC_NMTLSUBDISPINFO) 1448 #define MC_TLM_SETCOLUMN MCTRL_NAME_AW(MC_TLM_SETCOLUMN) 1450 #define MC_TLM_INSERTCOLUMN MCTRL_NAME_AW(MC_TLM_INSERTCOLUMN) 1452 #define MC_TLM_SETCOLUMN MCTRL_NAME_AW(MC_TLM_SETCOLUMN) 1454 #define MC_TLM_GETCOLUMN MCTRL_NAME_AW(MC_TLM_GETCOLUMN) 1456 #define MC_TLM_INSERTITEM MCTRL_NAME_AW(MC_TLM_INSERTITEM) 1458 #define MC_TLM_SETITEM MCTRL_NAME_AW(MC_TLM_SETITEM) 1460 #define MC_TLM_GETITEM MCTRL_NAME_AW(MC_TLM_GETITEM) 1462 #define MC_TLM_SETSUBITEM MCTRL_NAME_AW(MC_TLM_SETSUBITEM) 1464 #define MC_TLM_GETSUBITEM MCTRL_NAME_AW(MC_TLM_GETSUBITEM) 1466 #define MC_TLN_SETDISPINFO MCTRL_NAME_AW(MC_TLN_SETDISPINFO) 1468 #define MC_TLN_GETDISPINFO MCTRL_NAME_AW(MC_TLN_GETDISPINFO) 1470 #define MC_TLN_SETSUBDISPINFO MCTRL_NAME_AW(MC_TLN_SETSUBDISPINFO) 1472 #define MC_TLN_GETSUBDISPINFO MCTRL_NAME_AW(MC_TLN_GETSUBDISPINFO) int iImage
Definition: treelist.h:598
#define MCTRL_API
Definition: _defs.h:46
int cchTextMax
Definition: treelist.h:540
MC_TLITEMA item
Definition: treelist.h:787
int iLevel
Definition: treelist.h:754
MC_HTREELISTITEM hParent
Definition: treelist.h:681
MC_HTREELISTITEM hItem
Definition: treelist.h:813
int cx
Definition: treelist.h:560
NMHDR hdr
Definition: treelist.h:811
Structure used by notifications MC_TLN_GETSUBDISPINFO and MC_TLN_SETSUBDISPINFO (ANSI variant)...
Definition: treelist.h:809
Structure used by notifications MC_TLN_GETSUBDISPINFO and MC_TLN_SETSUBDISPINFO (Unicode variant)...
Definition: treelist.h:794
WCHAR * pszText
Definition: treelist.h:591
Structure used by notifications MC_TLN_GETDISPINFO and MC_TLN_SETDISPINFO (Unicode variant)...
Definition: treelist.h:768
Structure used by notifications MC_TLN_GETDISPINFO and MC_TLN_SETDISPINFO (ANSI variant).
Definition: treelist.h:781
Structure describing item of the tree-list view (Unicode variant).
Definition: treelist.h:581
Structure describing item of the tree-list view (ANSI variant).
Definition: treelist.h:613
void * MC_HTREELISTITEM
Opaque handle type representing item of the control.
Definition: treelist.h:574
UINT fMask
Definition: treelist.h:530
UINT action
Definition: treelist.h:735
int iOrder
Definition: treelist.h:568
void mcTreeList_Terminate(void)
int cchTextMax
Definition: treelist.h:564
NMHDR hdr
Definition: treelist.h:796
int iImage
Definition: treelist.h:630
MC_HTREELISTITEM hInsertAfter
Definition: treelist.h:684
int iSelectedImage
Definition: treelist.h:632
WCHAR * pszText
Definition: treelist.h:538
char * pszText
Definition: treelist.h:669
int cchTextMax
Definition: treelist.h:594
MC_HTREELISTITEM hItemNew
Definition: treelist.h:741
NMHDR hdr
Definition: treelist.h:783
Structure used by the standard notification NM_CUSTOMDRAW.
Definition: treelist.h:749
int iExpandedImage
Definition: treelist.h:634
MC_TLITEMW item
Definition: treelist.h:774
int iSelectedImage
Definition: treelist.h:600
UINT flags
Definition: treelist.h:710
int iExpandedImage
Definition: treelist.h:602
LPARAM lItemParam
Definition: treelist.h:800
MC_HTREELISTITEM hItem
Definition: treelist.h:712
Structure describing subitem of the tree-list view (ANSI variant).
Definition: treelist.h:662
UINT fMask
Definition: treelist.h:648
Structure describing subitem of the tree-list view (Unicode variant).
Definition: treelist.h:645
Structure used by many control notifications.
Definition: treelist.h:731
int fmt
Definition: treelist.h:534
LPARAM lParamNew
Definition: treelist.h:743
char * pszText
Definition: treelist.h:562
int cx
Definition: treelist.h:536
WCHAR * pszText
Definition: treelist.h:652
COLORREF clrText
Definition: treelist.h:759
LPARAM lParamOld
Definition: treelist.h:739
NMHDR hdr
Definition: treelist.h:733
MC_TLSUBITEMW subitem
Definition: treelist.h:802
int iImage
Definition: treelist.h:542
int cChildren
Definition: treelist.h:638
UINT state
Definition: treelist.h:618
UINT state
Definition: treelist.h:586
COLORREF clrTextBk
Definition: treelist.h:761
MC_HTREELISTITEM hItemOld
Definition: treelist.h:737
int cchTextMax
Definition: treelist.h:655
MC_HTREELISTITEM hParent
Definition: treelist.h:695
int iImage
Definition: treelist.h:566
MC_HTREELISTITEM hItem
Definition: treelist.h:798
int iSubItem
Definition: treelist.h:650
MC_HTREELISTITEM hInsertAfter
Definition: treelist.h:698
int iSubItem
Definition: treelist.h:667
int cchTextMax
Definition: treelist.h:672
MC_TLITEMW item
Definition: treelist.h:686
LPARAM lParam
Definition: treelist.h:628
BOOL mcTreeList_Initialize(void)
MC_NMCUSTOMDRAW nmcd
Definition: treelist.h:751
Equivalent of NMCUSTOMDRAWINFO from <commctrl.h>.
Definition: _common.h:108
Structure for message MC_MTM_HITTEST.
Definition: treelist.h:706
MC_TLITEMA item
Definition: treelist.h:700
LPARAM lParam
Definition: treelist.h:596
Structure describing column of the tree-list view (ANSI variant).
Definition: treelist.h:551
Structure describing column of the tree-list view (Unicode variant).
Definition: treelist.h:527
int cchTextMax
Definition: treelist.h:626
char * pszText
Definition: treelist.h:623
int iOrder
Definition: treelist.h:544
UINT stateMask
Definition: treelist.h:589
UINT stateMask
Definition: treelist.h:621
Structure used for inserting an item (Unicode variant).
Definition: treelist.h:679
Structure used for inserting an item (ANSI variant).
Definition: treelist.h:693
POINT pt
Definition: treelist.h:708
UINT fMask
Definition: treelist.h:616
MC_HTREELISTITEM hItem
Definition: treelist.h:785
UINT fMask
Definition: treelist.h:665
int fmt
Definition: treelist.h:558
UINT fMask
Definition: treelist.h:584
UINT fMask
Definition: treelist.h:554
MC_TLSUBITEMA subitem
Definition: treelist.h:817
MC_HTREELISTITEM hItem
Definition: treelist.h:772
int iSubItem
Definition: treelist.h:715
LPARAM lItemParam
Definition: treelist.h:815
int iSubItem
Definition: treelist.h:757
int cChildren
Definition: treelist.h:606
Common constants and types.
NMHDR hdr
Definition: treelist.h:770