ReactOS 0.4.15-dev-7842-g558ab78
CSideTreeView Class Reference

#include <gui.h>

Inheritance diagram for CSideTreeView:
Collaboration diagram for CSideTreeView:

Public Member Functions

 CSideTreeView ()
 
HTREEITEM AddItem (HTREEITEM hParent, CStringW &Text, INT Image, INT SelectedImage, LPARAM lParam)
 
HTREEITEM AddCategory (HTREEITEM hRootItem, UINT TextIndex, UINT IconIndex)
 
HIMAGELIST SetImageList ()
 
VOID DestroyImageList ()
 
 ~CSideTreeView ()
 
- Public Member Functions inherited from CUiWindow< CTreeView >
virtual CUiBoxAsBox ()
 
HWND GetWindow ()
 
virtual VOID ComputeMinimalSize (SIZE *size)
 
virtual VOID ComputeContentBounds (RECT *rect)
 
virtual DWORD_PTR CountSizableChildren ()
 
virtual HDWP OnParentSize (RECT parentRect, HDWP hDwp)
 
virtual VOID AppendTabOrderWindow (int Direction, ATL::CSimpleArray< HWND > &TabOrderList)
 
virtual ~CUiWindow ()
 
VOID GetWindowTextW (CStringW &szText)
 
- Public Member Functions inherited from CUiPrimitive
virtual ~CUiPrimitive ()
 
virtual CUiBoxAsBox ()
 
virtual VOID ComputeMinimalSize (SIZE *size)
 
virtual VOID ComputeContentBounds (RECT *rect)
 
virtual DWORD_PTR CountSizableChildren ()
 
virtual HDWP OnParentSize (RECT parentRect, HDWP hDwp)
 
- Public Member Functions inherited from CTreeView
HWND Create (HWND hwndParent)
 
HTREEITEM AddItem (HTREEITEM hParent, LPWSTR lpText, INT Image, INT SelectedImage, LPARAM lParam)
 
void SetRedraw (BOOL redraw)
 
BOOL SetBkColor (COLORREF cr)
 
BOOL SetTextColor (COLORREF cr)
 
HIMAGELIST SetImageList (HIMAGELIST himl, int iImageList)
 
HTREEITEM InsertItem (const TVINSERTSTRUCTW *pitem)
 
BOOL DeleteItem (HTREEITEM i)
 
BOOL GetItem (TV_ITEM *pitem)
 
BOOL SetItem (const TV_ITEM *pitem)
 
int GetItemCount ()
 
BOOL EnsureVisible (HTREEITEM i)
 
HWND EditLabel (HTREEITEM i)
 
HTREEITEM GetNextItem (HTREEITEM i, WORD flags)
 
UINT GetItemState (int i, UINT mask)
 
HTREEITEM HitTest (TVHITTESTINFO *phtInfo)
 
DWORD_PTR GetItemData (HTREEITEM item)
 
HTREEITEM GetSelection ()
 
BOOL Expand (HTREEITEM item, DWORD action)
 
BOOL SelectItem (HTREEITEM item, DWORD action=TVGN_CARET)
 

Private Attributes

HIMAGELIST hImageTreeView
 

Additional Inherited Members

- Public Attributes inherited from CUiBox
CUiMargin m_Margin
 
CUiAlignment m_HorizontalAlignment
 
CUiAlignment m_VerticalAlignment
 
- Protected Member Functions inherited from CUiBox
 CUiBox ()
 
virtual VOID ComputeRect (RECT parentRect, RECT currentRect, RECT *newRect)
 
- Protected Attributes inherited from CUiPrimitive
CUiPrimitivem_Parent
 

Detailed Description

Definition at line 24 of file gui.h.

Constructor & Destructor Documentation

◆ CSideTreeView()

CSideTreeView::CSideTreeView ( )

Definition at line 33 of file gui.cpp.

34 : CUiWindow(),
36{
37}
#define TREEVIEW_ICON_SIZE
Definition: gui.h:22
INT GetSystemColorDepth()
Definition: misc.cpp:321
HIMAGELIST hImageTreeView
Definition: gui.h:26
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:804
#define ILC_MASK
Definition: commctrl.h:351

◆ ~CSideTreeView()

CSideTreeView::~CSideTreeView ( )

Definition at line 77 of file gui.cpp.

78{
80}
VOID DestroyImageList()
Definition: gui.cpp:71

Member Function Documentation

◆ AddCategory()

HTREEITEM CSideTreeView::AddCategory ( HTREEITEM  hRootItem,
UINT  TextIndex,
UINT  IconIndex 
)

Definition at line 46 of file gui.cpp.

47{
48 CStringW szText;
49 INT Index = 0;
51
54 if (hIcon)
55 {
58 }
59
60 szText.LoadStringW(TextIndex);
61 return AddItem(hRootItem, szText, Index, Index, TextIndex);
62}
static const WCHAR IconIndex[]
Definition: install.c:52
HINSTANCE hInst
Definition: dxdiag.c:13
static HICON
Definition: imagelist.c:84
HICON hIcon
Definition: msconfig.c:44
#define ImageList_AddIcon(himl, hicon)
Definition: commctrl.h:415
int32_t INT
Definition: typedefs.h:58
#define AddItem
Definition: userenv.h:209
_In_ WDFCOLLECTION _In_ ULONG Index
#define IMAGE_ICON
Definition: winuser.h:212
#define LR_CREATEDIBSECTION
Definition: winuser.h:1098
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
Definition: cursoricon.c:2203
#define MAKEINTRESOURCE
Definition: winuser.h:591
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2053

Referenced by CMainWindow::InitCategoriesList().

◆ AddItem()

HTREEITEM CSideTreeView::AddItem ( HTREEITEM  hParent,
CStringW Text,
INT  Image,
INT  SelectedImage,
LPARAM  lParam 
)

Definition at line 40 of file gui.cpp.

41{
42 return CUiWindow<CTreeView>::AddItem(hParent, const_cast<LPWSTR>(Text.GetString()), Image, SelectedImage, lParam);
43}
char * Text
Definition: combotst.c:136
LPARAM lParam
Definition: combotst.c:139
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ DestroyImageList()

VOID CSideTreeView::DestroyImageList ( )

Definition at line 71 of file gui.cpp.

72{
75}
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
Definition: imagelist.c:928

Referenced by ~CSideTreeView().

◆ SetImageList()

HIMAGELIST CSideTreeView::SetImageList ( )

Definition at line 65 of file gui.cpp.

66{
68}
#define TVSIL_NORMAL
Definition: commctrl.h:3443

Referenced by CMainWindow::InitCategoriesList().

Member Data Documentation

◆ hImageTreeView

HIMAGELIST CSideTreeView::hImageTreeView
private

Definition at line 26 of file gui.h.

Referenced by AddCategory(), DestroyImageList(), and SetImageList().


The documentation for this class was generated from the following files: