ReactOS  0.4.13-dev-651-g5dbc677
CListView Class Reference

#include <rosctrls.h>

Inheritance diagram for CListView:
Collaboration diagram for CListView:

Public Member Functions

HWND Create (HWND hWndParent, _U_RECT rect, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
 
void SetRedraw (BOOL redraw)
 
BOOL SetTextBkColor (COLORREF cr)
 
BOOL SetBkColor (COLORREF cr)
 
BOOL SetTextColor (COLORREF cr)
 
DWORD SetExtendedListViewStyle (DWORD dw, DWORD dwMask=0)
 
int InsertColumn (int iCol, LV_COLUMN *pcol)
 
int InsertColumn (int iCol, LPWSTR pszText, int fmt, int width=-1, int iSubItem=-1, int iImage=-1, int iOrder=-1)
 
int GetColumnWidth (int iCol)
 
HIMAGELIST SetImageList (HIMAGELIST himl, int iImageList)
 
int InsertItem (const LV_ITEM *pitem)
 
BOOL DeleteItem (int i)
 
BOOL GetItem (LV_ITEM *pitem)
 
BOOL SetItem (const LV_ITEM *pitem)
 
BOOL FindItem (int iStart, const LV_FINDINFO *plvfi)
 
int GetItemCount ()
 
BOOL DeleteAllItems ()
 
BOOL Update (int i)
 
UINT GetSelectedCount ()
 
BOOL SortItems (PFNLVCOMPARE pfnCompare, PVOID lParam)
 
BOOL EnsureVisible (int i, BOOL fPartialOK)
 
HWND EditLabel (int i)
 
int GetSelectionMark ()
 
int GetNextItem (int i, WORD flags)
 
void GetItemSpacing (SIZE &spacing, BOOL bSmallIconView=FALSE)
 
UINT GetItemState (int i, UINT mask)
 
void SetItemState (int i, UINT state, UINT mask)
 
int HitTest (LV_HITTESTINFO *phtInfo)
 
DWORD_PTR GetItemData (int i)
 
BOOL GetSelectedItem (LV_ITEM *pItem)
 
void GetItemText (int iItem, int iSubItem, LPTSTR pszText, int cchTextMax)
 
BOOL GetItemPosition (int nItem, POINT *pPoint)
 
BOOL SetItemPosition (int nItem, POINT *pPoint)
 
BOOL Arrange (UINT nCode)
 

Detailed Description

Definition at line 4 of file rosctrls.h.

Member Function Documentation

◆ Arrange()

BOOL CListView::Arrange ( UINT  nCode)
inline

Definition at line 228 of file rosctrls.h.

229  {
230  return (BOOL)SendMessage(LVM_ARRANGE, nCode, 0);
231  }
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_ARRANGE
Definition: commctrl.h:2504
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::AutoArrange().

◆ Create()

HWND CListView::Create ( HWND  hWndParent,
_U_RECT  rect,
LPCTSTR  szWindowName = NULL,
DWORD  dwStyle = 0,
DWORD  dwExStyle = 0,
_U_MENUorID  MenuOrID = 0U,
LPVOID  lpCreateParam = NULL 
)
inline

Definition at line 8 of file rosctrls.h.

10  {
11  m_hWnd = ::CreateWindowEx(dwExStyle,
12  WC_LISTVIEW,
13  szWindowName,
14  dwStyle,
15  rect.m_lpRect->left,
16  rect.m_lpRect->top,
17  rect.m_lpRect->right - rect.m_lpRect->left,
18  rect.m_lpRect->bottom - rect.m_lpRect->top,
19  hWndParent,
20  MenuOrID.m_hMenu,
21  _AtlBaseModule.GetModuleInstance(),
22  lpCreateParam);
23 
24  return m_hWnd;
25  }
& rect
Definition: startmenu.cpp:1413
#define CreateWindowEx
Definition: winuser.h:5653
#define WC_LISTVIEW
Definition: commctrl.h:2231

Referenced by CDowloadingAppsListView::Create(), CAppsListView::Create(), and CDefView::CreateList().

◆ DeleteAllItems()

BOOL CListView::DeleteAllItems ( )
inline

Definition at line 126 of file rosctrls.h.

127  {
129  }
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_DELETEALLITEMS
Definition: commctrl.h:2385
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::InitList(), CDefView::Refresh(), CDefView::RemoveObject(), and CMainWindow::UpdateApplicationsList().

◆ DeleteItem()

BOOL CListView::DeleteItem ( int  i)
inline

Definition at line 101 of file rosctrls.h.

102  {
103  return (BOOL)SendMessage(LVM_DELETEITEM, i, 0);
104  }
#define LVM_DELETEITEM
Definition: commctrl.h:2382
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int BOOL
Definition: ntddk_ex.h:94
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::LV_DeleteItem(), and CDefView::RemoveObject().

◆ EditLabel()

HWND CListView::EditLabel ( int  i)
inline

Definition at line 151 of file rosctrls.h.

152  {
153  return (HWND)SendMessage(LVM_EDITLABEL, i, 0);
154  }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define LVM_EDITLABEL
Definition: commctrl.h:2510
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::SelectItem().

◆ EnsureVisible()

BOOL CListView::EnsureVisible ( int  i,
BOOL  fPartialOK 
)
inline

Definition at line 146 of file rosctrls.h.

147  {
148  return (BOOL)SendMessage(LVM_ENSUREVISIBLE, i, MAKELPARAM((fPartialOK),0));
149  }
#define MAKELPARAM(l, h)
Definition: winuser.h:3947
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int BOOL
Definition: ntddk_ex.h:94
#define SendMessage
Definition: winuser.h:5741
#define LVM_ENSUREVISIBLE
Definition: commctrl.h:2490

Referenced by CDefView::SelectItem().

◆ FindItem()

BOOL CListView::FindItem ( int  iStart,
const LV_FINDINFO plvfi 
)
inline

Definition at line 116 of file rosctrls.h.

117  {
118  return (BOOL)SendMessage(LVM_FINDITEM, iStart, (LPARAM) plvfi);
119  }
#define LVM_FINDITEM
Definition: commctrl.h:2440
_In_ UINT iStart
Definition: wingdi.h:3598
unsigned int BOOL
Definition: ntddk_ex.h:94
LONG_PTR LPARAM
Definition: windef.h:208
#define SendMessage
Definition: winuser.h:5741

Referenced by CAppsListView::CompareFunc().

◆ GetColumnWidth()

int CListView::GetColumnWidth ( int  iCol)
inline

Definition at line 86 of file rosctrls.h.

87  {
88  return (int)SendMessage(LVM_GETCOLUMNWIDTH, iCol);
89  }
#define SendMessage
Definition: winuser.h:5741
#define LVM_GETCOLUMNWIDTH
Definition: commctrl.h:2613

◆ GetItem()

BOOL CListView::GetItem ( LV_ITEM pitem)
inline

Definition at line 106 of file rosctrls.h.

107  {
108  return (BOOL)SendMessage(LVM_GETITEM, 0, reinterpret_cast<LPARAM>(pitem));
109  }
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_GETITEM
Definition: commctrl.h:2364
#define SendMessage
Definition: winuser.h:5741

Referenced by GetItemData(), CAppsListView::GetLParam(), GetSelectedItem(), and CDefView::LV_RenameItem().

◆ GetItemCount()

◆ GetItemData()

DWORD_PTR CListView::GetItemData ( int  i)
inline

Definition at line 191 of file rosctrls.h.

192  {
193  LVITEMW lvItem = { 0 };
194  lvItem.mask = LVIF_PARAM;
195  lvItem.iItem = i;
196  BOOL ret = GetItem(&lvItem);
197  return (DWORD_PTR)(ret ? lvItem.lParam : NULL);
198  }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int BOOL
Definition: ntddk_ex.h:94
LPARAM lParam
Definition: commctrl.h:2340
smooth NULL
Definition: ftsmooth.c:416
BOOL GetItem(LV_ITEM *pitem)
Definition: rosctrls.h:106
UINT mask
Definition: commctrl.h:2332
int ret
uint32_t DWORD_PTR
Definition: typedefs.h:63
#define LVIF_PARAM
Definition: commctrl.h:2283

Referenced by CDefView::_PidlByItem(), CAppsListView::GetCheckedItems(), CAppsListView::GetSelectedData(), ListViewGetlParam(), and CAppsListView::SetSelected().

◆ GetItemPosition()

BOOL CListView::GetItemPosition ( int  nItem,
POINT pPoint 
)
inline

Definition at line 218 of file rosctrls.h.

219  {
220  return (BOOL)SendMessage(LVM_GETITEMPOSITION, nItem, (LPARAM)pPoint);
221  }
unsigned int BOOL
Definition: ntddk_ex.h:94
LONG_PTR LPARAM
Definition: windef.h:208
#define SendMessage
Definition: winuser.h:5741
#define LVM_GETITEMPOSITION
Definition: commctrl.h:2455

Referenced by CDefView::Drop(), CDefView::GetItemPosition(), and CDefView::OnNotify().

◆ GetItemSpacing()

void CListView::GetItemSpacing ( SIZE spacing,
BOOL  bSmallIconView = FALSE 
)
inline

Definition at line 166 of file rosctrls.h.

167  {
168  DWORD ret = SendMessage(LVM_GETITEMSPACING, bSmallIconView);
169  spacing.cx = LOWORD(ret);
170  spacing.cy = HIWORD(ret);
171  }
LONG cx
Definition: windef.h:319
#define LVM_GETITEMSPACING
Definition: commctrl.h:2683
unsigned long DWORD
Definition: ntddk_ex.h:95
int ret
#define SendMessage
Definition: winuser.h:5741
#define HIWORD(l)
Definition: typedefs.h:246
LONG cy
Definition: windef.h:320
#define LOWORD(l)
Definition: pedump.c:82

Referenced by CDefView::GetSpacing().

◆ GetItemState()

UINT CListView::GetItemState ( int  i,
UINT  mask 
)
inline

Definition at line 173 of file rosctrls.h.

174  {
176  }
#define LVM_GETITEMSTATE
Definition: commctrl.h:2647
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLenum GLint GLuint mask
Definition: glext.h:6028
LONG_PTR LPARAM
Definition: windef.h:208
#define SendMessage
Definition: winuser.h:5741

Referenced by CAppsListView::GetCheckState(), and CDefView::OnCommand().

◆ GetItemText()

void CListView::GetItemText ( int  iItem,
int  iSubItem,
LPTSTR  pszText,
int  cchTextMax 
)
inline

Definition at line 208 of file rosctrls.h.

209  {
210  LV_ITEM itemInfo;
211  itemInfo.iSubItem = iSubItem;
212  itemInfo.pszText = pszText;
213  itemInfo.cchTextMax = cchTextMax;
214 
215  SendMessage(LVM_GETITEMTEXT, iItem, (LPARAM) &itemInfo);
216  }
#define LV_ITEM
Definition: commctrl.h:2309
#define LVM_GETITEMTEXT
Definition: commctrl.h:2654
LONG_PTR LPARAM
Definition: windef.h:208
#define SendMessage
Definition: winuser.h:5741

Referenced by CAppsListView::CompareFunc().

◆ GetNextItem()

int CListView::GetNextItem ( int  i,
WORD  flags 
)
inline

Definition at line 161 of file rosctrls.h.

162  {
163  return (int)SendMessage(LVM_GETNEXTITEM, i, MAKELPARAM((flags),0));
164  }
#define MAKELPARAM(l, h)
Definition: winuser.h:3947
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLbitfield flags
Definition: glext.h:7161
#define SendMessage
Definition: winuser.h:5741
#define LVM_GETNEXTITEM
Definition: commctrl.h:2405

Referenced by CDefView::Drop(), CAppsListView::GetCheckedItems(), CDefView::GetFocusedItem(), GetSelectedItem(), CDefView::GetSelections(), CDefView::OnContextMenu(), and CAppsListView::SetSelected().

◆ GetSelectedCount()

UINT CListView::GetSelectedCount ( )
inline

Definition at line 136 of file rosctrls.h.

137  {
139  }
#define LVM_GETSELECTEDCOUNT
Definition: commctrl.h:2680
unsigned int UINT
Definition: ndis.h:50
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::GetSelections(), CDefView::OnContextMenu(), CDefView::OpenSelectedItems(), and CDefView::UpdateStatusbar().

◆ GetSelectedItem()

BOOL CListView::GetSelectedItem ( LV_ITEM pItem)
inline

Definition at line 200 of file rosctrls.h.

201  {
202  pItem->iItem = GetNextItem(-1, LVNI_ALL | LVNI_SELECTED);
203  if (pItem->iItem == -1)
204  return FALSE;
205  return GetItem(pItem);
206  }
int GetNextItem(int i, WORD flags)
Definition: rosctrls.h:161
#define LVNI_SELECTED
Definition: commctrl.h:2396
BOOL GetItem(LV_ITEM *pitem)
Definition: rosctrls.h:106
#define LVNI_ALL
Definition: commctrl.h:2394

◆ GetSelectionMark()

int CListView::GetSelectionMark ( )
inline

Definition at line 156 of file rosctrls.h.

157  {
158  return (int)SendMessage(LVM_GETSELECTIONMARK);
159  }
#define LVM_GETSELECTIONMARK
Definition: commctrl.h:2760
#define SendMessage
Definition: winuser.h:5741

Referenced by CAppsListView::GetSelectedData(), CDefView::GetSelectionMarkedItem(), and ListViewGetlParam().

◆ HitTest()

int CListView::HitTest ( LV_HITTESTINFO phtInfo)
inline

Definition at line 186 of file rosctrls.h.

187  {
188  return (int)SendMessage(LVM_HITTEST, 0, reinterpret_cast<LPARAM>(phtInfo));
189  }
#define LVM_HITTEST
Definition: commctrl.h:2487
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::drag_notify_subitem().

◆ InsertColumn() [1/2]

int CListView::InsertColumn ( int  iCol,
LV_COLUMN pcol 
)
inline

Definition at line 52 of file rosctrls.h.

53  {
54  return (int)SendMessage(LVM_INSERTCOLUMN, iCol, reinterpret_cast<LPARAM>(pcol));
55  }
#define LVM_INSERTCOLUMN
Definition: commctrl.h:2606
#define SendMessage
Definition: winuser.h:5741

Referenced by CDowloadingAppsListView::AddColumn(), CAppsListView::AddColumn(), CDefView::InitList(), and InsertColumn().

◆ InsertColumn() [2/2]

int CListView::InsertColumn ( int  iCol,
LPWSTR  pszText,
int  fmt,
int  width = -1,
int  iSubItem = -1,
int  iImage = -1,
int  iOrder = -1 
)
inline

Definition at line 57 of file rosctrls.h.

58  {
59  LV_COLUMN column = {0};
60  column.mask = LVCF_TEXT|LVCF_FMT;
61  column.pszText = pszText;
62  column.fmt = fmt;
63  if(width != -1)
64  {
65  column.mask |= LVCF_WIDTH;
66  column.cx = width;
67  }
68  if(iSubItem != -1)
69  {
70  column.mask |= LVCF_SUBITEM;
71  column.iSubItem = iSubItem;
72  }
73  if(iImage != -1)
74  {
75  column.mask |= LVCF_IMAGE;
76  column.iImage = iImage;
77  }
78  if(iOrder != -1)
79  {
80  column.mask |= LVCF_ORDER;
81  column.iOrder = iOrder;
82  }
83  return InsertColumn(iCol, &column);
84  }
GLint GLint GLsizei width
Definition: gl.h:1546
#define LVCF_WIDTH
Definition: commctrl.h:2559
#define LVCF_TEXT
Definition: commctrl.h:2560
#define LV_COLUMN
Definition: commctrl.h:2519
const char * fmt
Definition: wsprintf.c:30
#define LVCF_SUBITEM
Definition: commctrl.h:2561
#define LVCF_FMT
Definition: commctrl.h:2558
int InsertColumn(int iCol, LV_COLUMN *pcol)
Definition: rosctrls.h:52
#define LVCF_IMAGE
Definition: commctrl.h:2562
#define LVCF_ORDER
Definition: commctrl.h:2563

◆ InsertItem()

int CListView::InsertItem ( const LV_ITEM pitem)
inline

Definition at line 96 of file rosctrls.h.

97  {
98  return (int)SendMessage(LVM_INSERTITEM, 0, reinterpret_cast<LPARAM>(pitem));
99  }
#define LVM_INSERTITEM
Definition: commctrl.h:2378
#define SendMessage
Definition: winuser.h:5741

Referenced by CDowloadingAppsListView::AddItem(), CAppsListView::AddItem(), and CDefView::LV_AddItem().

◆ SetBkColor()

BOOL CListView::SetBkColor ( COLORREF  cr)
inline

Definition at line 37 of file rosctrls.h.

38  {
39  return (BOOL)SendMessage(LVM_SETBKCOLOR, 0, cr);
40  }
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_SETBKCOLOR
Definition: commctrl.h:2265
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::UpdateListColors().

◆ SetExtendedListViewStyle()

DWORD CListView::SetExtendedListViewStyle ( DWORD  dw,
DWORD  dwMask = 0 
)
inline

Definition at line 47 of file rosctrls.h.

48  {
50  }
unsigned long DWORD
Definition: ntddk_ex.h:95
#define LVM_SETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2696
REFIID LPVOID DWORD dw
Definition: atlbase.h:40
#define SendMessage
Definition: winuser.h:5741

Referenced by CAppsListView::SetCheckboxesVisible(), and CDefView::UpdateListColors().

◆ SetImageList()

HIMAGELIST CListView::SetImageList ( HIMAGELIST  himl,
int  iImageList 
)
inline

Definition at line 91 of file rosctrls.h.

92  {
93  return (HIMAGELIST)SendMessage(LVM_SETIMAGELIST, iImageList, reinterpret_cast<LPARAM>(himl));
94  }
HIMAGELIST himl
#define LVM_SETIMAGELIST
Definition: commctrl.h:2275
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::InitList(), and CMainWindow::UpdateApplicationsList().

◆ SetItem()

BOOL CListView::SetItem ( const LV_ITEM pitem)
inline

Definition at line 111 of file rosctrls.h.

112  {
113  return (BOOL)SendMessage(LVM_SETITEM, 0, reinterpret_cast<LPARAM>(pitem));
114  }
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_SETITEM
Definition: commctrl.h:2371
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::LV_ProdItem(), CDefView::LV_RenameItem(), and CDefView::OnNotify().

◆ SetItemPosition()

BOOL CListView::SetItemPosition ( int  nItem,
POINT pPoint 
)
inline

Definition at line 223 of file rosctrls.h.

224  {
225  return (BOOL)SendMessage(LVM_SETITEMPOSITION, nItem, MAKELPARAM(pPoint->x, pPoint->y));
226  }
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define MAKELPARAM(l, h)
Definition: winuser.h:3947
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_SETITEMPOSITION
Definition: commctrl.h:2452
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::Drop(), and CDefView::SelectAndPositionItems().

◆ SetItemState()

void CListView::SetItemState ( int  i,
UINT  state,
UINT  mask 
)
inline

Definition at line 178 of file rosctrls.h.

179  {
180  LV_ITEM item;
181  item.stateMask = mask;
182  item.state = state;
183  SendMessage(LVM_SETITEMSTATE, i, reinterpret_cast<LPARAM>(&item));
184  }
#define LV_ITEM
Definition: commctrl.h:2309
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLenum GLint GLuint mask
Definition: glext.h:6028
#define LVM_SETITEMSTATE
Definition: commctrl.h:2644
static int state
Definition: maze.c:121
static ATOM item
Definition: dde.c:856
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::Drop(), CDefView::OnCommand(), CDefView::SelectAndPositionItems(), CDefView::SelectItem(), and CAppsListView::SetCheckState().

◆ SetRedraw()

void CListView::SetRedraw ( BOOL  redraw)
inline

Definition at line 27 of file rosctrls.h.

28  {
30  }
#define WM_SETREDRAW
Definition: winuser.h:1598
void redraw(int x, int y, int cx, int cy)
Definition: qtewin.cpp:1248
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::FillList(), CDefView::SetRedraw(), and CMainWindow::UpdateApplicationsList().

◆ SetTextBkColor()

BOOL CListView::SetTextBkColor ( COLORREF  cr)
inline

Definition at line 32 of file rosctrls.h.

33  {
34  return (BOOL)SendMessage(LVM_SETTEXTBKCOLOR, 0, cr);
35  }
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_SETTEXTBKCOLOR
Definition: commctrl.h:2634
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::UpdateListColors().

◆ SetTextColor()

BOOL CListView::SetTextColor ( COLORREF  cr)
inline

Definition at line 42 of file rosctrls.h.

43  {
44  return (BOOL)SendMessage(LVM_SETTEXTCOLOR, 0, cr);
45  }
#define LVM_SETTEXTCOLOR
Definition: commctrl.h:2630
unsigned int BOOL
Definition: ntddk_ex.h:94
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::UpdateListColors().

◆ SortItems()

BOOL CListView::SortItems ( PFNLVCOMPARE  pfnCompare,
PVOID  lParam 
)
inline

Definition at line 141 of file rosctrls.h.

142  {
143  return (BOOL)SendMessage(LVM_SORTITEMS, (WPARAM)lParam, (LPARAM) pfnCompare);
144  }
#define LVM_SORTITEMS
Definition: commctrl.h:2674
UINT_PTR WPARAM
Definition: windef.h:207
unsigned int BOOL
Definition: ntddk_ex.h:94
LONG_PTR LPARAM
Definition: windef.h:208
#define SendMessage
Definition: winuser.h:5741
LPARAM lParam
Definition: combotst.c:139

Referenced by CDefView::_Sort(), and CAppsListView::ColumnClick().

◆ Update()

BOOL CListView::Update ( int  i)
inline

Definition at line 131 of file rosctrls.h.

132  {
133  return (BOOL)SendMessage(LVM_UPDATE, i, 0);
134  }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int BOOL
Definition: ntddk_ex.h:94
#define LVM_UPDATE
Definition: commctrl.h:2642
#define SendMessage
Definition: winuser.h:5741

Referenced by CDefView::LV_ProdItem(), CDefView::LV_RenameItem(), and CDefView::OnNotify().


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