ReactOS  0.4.15-dev-1389-g828d5fa
CSideTreeView Class Reference

#include <gui.h>

Inheritance diagram for CSideTreeView:
Collaboration diagram for CSideTreeView:

Public Member Functions

 CSideTreeView ()
 
HTREEITEM AddItem (HTREEITEM hParent, ATL::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 (ATL::CStringW &szText)
 
- Public Member Functions inherited from CUiPrimitive
virtual ~CUiPrimitive ()
 
- 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 27 of file gui.h.

Constructor & Destructor Documentation

◆ CSideTreeView()

CSideTreeView::CSideTreeView ( )

Definition at line 39 of file gui.cpp.

39  :
40  CUiWindow(),
43  0, 1))
44 {
45 }
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:804
HIMAGELIST hImageTreeView
Definition: gui.h:30
INT GetSystemColorDepth()
Definition: misc.cpp:489
#define ILC_MASK
Definition: commctrl.h:347
#define TREEVIEW_ICON_SIZE
Definition: gui.cpp:33

◆ ~CSideTreeView()

CSideTreeView::~CSideTreeView ( )

Definition at line 85 of file gui.cpp.

86 {
88 }
VOID DestroyImageList()
Definition: gui.cpp:79

Member Function Documentation

◆ AddCategory()

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

Definition at line 52 of file gui.cpp.

53 {
55  INT Index = 0;
56  HICON hIcon;
57 
60  IMAGE_ICON,
64  if (hIcon)
65  {
68  }
69 
70  szText.LoadStringW(TextIndex);
71  return AddItem(hRootItem, szText, Index, Index, TextIndex);
72 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
static HICON
Definition: imagelist.c:84
#define IMAGE_ICON
Definition: winuser.h:212
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2022
int32_t INT
Definition: typedefs.h:58
static const WCHAR szText[]
Definition: dialog.c:139
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
Definition: cursoricon.c:2172
HIMAGELIST hImageTreeView
Definition: gui.h:30
HTREEITEM AddItem(HTREEITEM hParent, ATL::CStringW &Text, INT Image, INT SelectedImage, LPARAM lParam)
Definition: gui.cpp:47
_In_ WDFCOLLECTION _In_ ULONG Index
INT WINAPI ImageList_AddIcon(HIMAGELIST himl, HICON hIcon)
Definition: imagelist.c:540
static const WCHAR IconIndex[]
Definition: install.c:52
HINSTANCE hInst
Definition: dxdiag.c:13
HICON hIcon
Definition: msconfig.c:44
#define LR_CREATEDIBSECTION
Definition: winuser.h:1088
#define TREEVIEW_ICON_SIZE
Definition: gui.cpp:33

Referenced by CMainWindow::InitCategoriesList().

◆ AddItem()

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

Definition at line 47 of file gui.cpp.

48 {
49  return CUiWindow<CTreeView>::AddItem(hParent, const_cast<LPWSTR>(Text.GetString()), Image, SelectedImage, lParam);
50 }
void AddItem(DWORD, DWORD, DWORD, DWORD, int)
Definition: toolspage.c:25
const DOCKBAR PVOID HWND hParent
Definition: tooldock.h:22
LPARAM lParam
Definition: combotst.c:139
char * Text
Definition: combotst.c:136

Referenced by AddCategory().

◆ DestroyImageList()

VOID CSideTreeView::DestroyImageList ( )

Definition at line 79 of file gui.cpp.

80 {
81  if (hImageTreeView)
83 }
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
Definition: imagelist.c:928
HIMAGELIST hImageTreeView
Definition: gui.h:30

Referenced by ~CSideTreeView().

◆ SetImageList()

HIMAGELIST CSideTreeView::SetImageList ( )

Definition at line 74 of file gui.cpp.

75 {
77 }
HIMAGELIST hImageTreeView
Definition: gui.h:30
static VOID SetImageList(HWND hwnd)
Definition: mplay32.c:238
#define TVSIL_NORMAL
Definition: commctrl.h:3439

Referenced by CMainWindow::InitCategoriesList().

Member Data Documentation

◆ hImageTreeView

HIMAGELIST CSideTreeView::hImageTreeView
private

Definition at line 30 of file gui.h.

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


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