1 /** 2 * 3 */ 4 package org.sirius.server.win32.classes.controls; 5 6 /** 7 * @author Myk Kolisnyk 8 * 9 */ 10 public class TreeView { 11 12 /** 13 * 14 */ 15 public TreeView() { 16 // TODO Auto-generated constructor stub 17 } 18 /* 19 * #define TreeView_InsertItem(w,i) 20 * (HTREEITEM)SNDMSG((w),TVM_INSERTITEM,0,(LPARAM)(LPTV_INSERTSTRUCT)(i)) 21 * #define TreeView_DeleteItem(w,i) 22 * (BOOL)SNDMSG((w),TVM_DELETEITEM,0,(LPARAM)(HTREEITEM)(i)) #define 23 * TreeView_DeleteAllItems(w) 24 * (BOOL)SNDMSG((w),TVM_DELETEITEM,0,(LPARAM)TVI_ROOT) #define 25 * TreeView_Expand(w,i,c) 26 * (BOOL)SNDMSG((w),TVM_EXPAND,c,(LPARAM)(HTREEITEM)(i)) #define 27 * TreeView_GetItemRect(w,i,p,c) 28 * (*(HTREEITEM*)p=(i),(BOOL)SNDMSG((w),TVM_GETITEMRECT 29 * ,c,(LPARAM)(LPRECT)(p))) #define TreeView_GetCount(w) 30 * (UINT)SNDMSG((w),TVM_GETCOUNT,0,0) #define TreeView_GetIndent(w) 31 * (UINT)SNDMSG((w),TVM_GETINDENT,0,0) #define TreeView_SetIndent(w,i) 32 * (BOOL)SNDMSG((w),TVM_SETINDENT,i,0) #define TreeView_GetImageList(w,i) 33 * (HIMAGELIST)SNDMSG((w),TVM_GETIMAGELIST,i,0) #define 34 * TreeView_SetImageList(w,h,i) 35 * (HIMAGELIST)SNDMSG((w),TVM_SETIMAGELIST,i,(LPARAM)(HIMAGELIST)(h)) 36 * #define TreeView_GetNextItem(w,i,c) 37 * (HTREEITEM)SNDMSG((w),TVM_GETNEXTITEM,c,(LPARAM)(HTREEITEM)(i)) #define 38 * TreeView_GetChild(w,i) TreeView_GetNextItem(w,i,TVGN_CHILD) #define 39 * TreeView_GetNextSibling(w,i) TreeView_GetNextItem(w,i,TVGN_NEXT) #define 40 * TreeView_GetPrevSibling(w,i) TreeView_GetNextItem(w,i,TVGN_PREVIOUS) 41 * #define TreeView_GetParent(w,i) TreeView_GetNextItem(w,i,TVGN_PARENT) 42 * #define TreeView_GetFirstVisible(w) 43 * TreeView_GetNextItem(w,NULL,TVGN_FIRSTVISIBLE) #define 44 * TreeView_GetNextVisible(w,i) TreeView_GetNextItem(w,i,TVGN_NEXTVISIBLE) 45 * #define TreeView_GetPrevVisible(w,i) 46 * TreeView_GetNextItem(w,i,TVGN_PREVIOUSVISIBLE) #define 47 * TreeView_GetSelection(w) TreeView_GetNextItem(w,NULL,TVGN_CARET) #define 48 * TreeView_GetDropHilight(w) TreeView_GetNextItem(w,NULL,TVGN_DROPHILITE) 49 * #define TreeView_GetRoot(w) TreeView_GetNextItem(w,NULL,TVGN_ROOT) 50 * #define TreeView_Select(w,i,c) 51 * (BOOL)SNDMSG((w),TVM_SELECTITEM,c,(LPARAM)(HTREEITEM)(i)) #define 52 * TreeView_SelectItem(w,i) TreeView_Select(w,i,TVGN_CARET) #define 53 * TreeView_SelectDropTarget(w,i) TreeView_Select(w,i,TVGN_DROPHILITE) 54 * #define TreeView_SelectSetFirstVisible(w,i) 55 * TreeView_Select(w,i,TVGN_FIRSTVISIBLE) #define TreeView_GetItem(w,i) 56 * (BOOL)SNDMSG((w),TVM_GETITEM,0,(LPARAM)(TV_ITEM*)(i)) #define 57 * TreeView_SetItem(w,i) (BOOL)SNDMSG((w),TVM_SETITEM,0,(LPARAM)(const 58 * TV_ITEM*)(i)) #define TreeView_EditLabel(w,i) 59 * (HWND)SNDMSG((w),TVM_EDITLABEL,0,(LPARAM)(HTREEITEM)(i)) #define 60 * TreeView_GetEditControl(w) (HWND)SNDMSG((w),TVM_GETEDITCONTROL,0,0) 61 * #define TreeView_GetVisibleCount(w) 62 * (UINT)SNDMSG((w),TVM_GETVISIBLECOUNT,0,0) #define TreeView_HitTest(w,p) 63 * (HTREEITEM)SNDMSG((w),TVM_HITTEST,0,(LPARAM)(LPTV_HITTESTINFO)(p)) 64 * #define TreeView_CreateDragImage(w,i) 65 * (HIMAGELIST)SNDMSG((w),TVM_CREATEDRAGIMAGE,0,(LPARAM)(HTREEITEM)(i)) 66 * #define TreeView_SortChildren(w,i,r) 67 * (BOOL)SNDMSG((w),TVM_SORTCHILDREN,r,(LPARAM)(HTREEITEM)(i)) #define 68 * TreeView_EnsureVisible(w,i) 69 * (BOOL)SNDMSG((w),TVM_ENSUREVISIBLE,0,(LPARAM)(HTREEITEM)(i)) #define 70 * TreeView_SortChildrenCB(w,s,r) 71 * (BOOL)SNDMSG((w),TVM_SORTCHILDRENCB,r,(LPARAM)(LPTVSORTCB)(s)) #define 72 * TreeView_EndEditLabelNow(w,f) (BOOL)SNDMSG((w),TVM_ENDEDITLABELNOW,f,0) 73 * #define TreeView_GetISearchString(w,s) 74 * (BOOL)SNDMSG((w),TVM_GETISEARCHSTRING,0,(LPARAM)s) 75 */ 76 }