ReactOS  0.4.14-dev-608-gd495a4f
CSideTreeView Class Reference
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 ~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 659 of file gui.cpp.

Constructor & Destructor Documentation

◆ CSideTreeView()

CSideTreeView::CSideTreeView ( )
inline

Definition at line 665 of file gui.cpp.

665  :
666  CUiWindow(),
669  0, 1))
670  {
671  }
INT GetSystemColorDepth()
Definition: gui.cpp:29
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:804
HIMAGELIST hImageTreeView
Definition: gui.cpp:662
#define ILC_MASK
Definition: commctrl.h:347
#define TREEVIEW_ICON_SIZE
Definition: gui.cpp:27

◆ ~CSideTreeView()

CSideTreeView::~CSideTreeView ( )
inline

Definition at line 711 of file gui.cpp.

712  {
714  }
VOID DestroyImageList()
Definition: gui.cpp:705

Member Function Documentation

◆ AddCategory()

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

Definition at line 678 of file gui.cpp.

679  {
681  INT Index;
682  HICON hIcon;
683 
686  IMAGE_ICON,
690  if (hIcon)
691  {
694  }
695 
696  szText.LoadStringW(TextIndex);
697  return AddItem(hRootItem, szText, Index, Index, TextIndex);
698  }
#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:56
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.cpp:662
HTREEITEM AddItem(HTREEITEM hParent, ATL::CStringW &Text, INT Image, INT SelectedImage, LPARAM lParam)
Definition: gui.cpp:673
static const UCHAR Index[8]
Definition: usbohci.c:18
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:27

Referenced by CMainWindow::InitCategoriesList().

◆ AddItem()

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

Definition at line 673 of file gui.cpp.

674  {
675  return CUiWindow<CTreeView>::AddItem(hParent, const_cast<LPWSTR>(Text.GetString()), Image, SelectedImage, lParam);
676  }
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 ( )
inline

Definition at line 705 of file gui.cpp.

706  {
707  if (hImageTreeView)
709  }
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
Definition: imagelist.c:928
HIMAGELIST hImageTreeView
Definition: gui.cpp:662

Referenced by ~CSideTreeView().

◆ SetImageList()

HIMAGELIST CSideTreeView::SetImageList ( )
inline

Definition at line 700 of file gui.cpp.

701  {
703  }
HIMAGELIST hImageTreeView
Definition: gui.cpp:662
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 662 of file gui.cpp.

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


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