ReactOS  0.4.15-dev-5500-g82cf6c2
CDowloadingAppsListView Class Reference
Inheritance diagram for CDowloadingAppsListView:
Collaboration diagram for CDowloadingAppsListView:

Public Member Functions

HWND Create (HWND hwndParent)
 
VOID LoadList (ATL::CSimpleArray< DownloadInfo > arrInfo)
 
VOID SetDownloadStatus (INT ItemIndex, DownloadStatus Status)
 
BOOL AddItem (INT ItemIndex, LPWSTR lpText)
 
VOID AddRow (INT RowIndex, LPCWSTR szAppName, const DownloadStatus Status)
 
BOOL AddColumn (INT Index, INT Width, INT Format)
 
- Public Member Functions inherited from CListView
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)
 
BOOL SetItemText (int i, int subItem, LPCWSTR text)
 
void SetCheckState (int i, BOOL check)
 
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 259 of file loaddlg.cpp.

Member Function Documentation

◆ AddColumn()

BOOL CDowloadingAppsListView::AddColumn ( INT  Index,
INT  Width,
INT  Format 
)
inline

Definition at line 312 of file loaddlg.cpp.

313  {
314  LVCOLUMNW Column;
315  ZeroMemory(&Column, sizeof(Column));
316 
317  Column.mask = LVCF_FMT | LVCF_WIDTH | LVCF_SUBITEM;
318  Column.iSubItem = Index;
319  Column.cx = Width;
320  Column.fmt = Format;
321 
322  return (InsertColumn(Index, &Column) == -1) ? FALSE : TRUE;
323  }
#define LVCF_WIDTH
Definition: commctrl.h:2587
#define TRUE
Definition: types.h:120
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:124
#define ZeroMemory
Definition: winbase.h:1670
#define LVCF_SUBITEM
Definition: commctrl.h:2589
#define FALSE
Definition: types.h:117
_In_ WDFCOLLECTION _In_ ULONG Index
#define LVCF_FMT
Definition: commctrl.h:2586
int InsertColumn(int iCol, LV_COLUMN *pcol)
Definition: rosctrls.h:52
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char * Format
Definition: acpixf.h:1220

Referenced by Create().

◆ AddItem()

BOOL CDowloadingAppsListView::AddItem ( INT  ItemIndex,
LPWSTR  lpText 
)
inline

Definition at line 291 of file loaddlg.cpp.

292  {
293  LVITEMW Item;
294 
295  ZeroMemory(&Item, sizeof(Item));
296 
297  Item.mask = LVIF_TEXT | LVIF_STATE;
298  Item.pszText = lpText;
299  Item.iItem = ItemIndex;
300 
301  return InsertItem(&Item);
302  }
#define ZeroMemory
Definition: winbase.h:1670
#define LVIF_TEXT
Definition: commctrl.h:2309
int InsertItem(const LV_ITEM *pitem)
Definition: rosctrls.h:96
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
#define LVIF_STATE
Definition: commctrl.h:2312

Referenced by AddRow().

◆ AddRow()

VOID CDowloadingAppsListView::AddRow ( INT  RowIndex,
LPCWSTR  szAppName,
const DownloadStatus  Status 
)
inline

Definition at line 304 of file loaddlg.cpp.

305  {
307  AddItem(RowIndex,
308  const_cast<LPWSTR>(szAppName));
309  SetDownloadStatus(RowIndex, Status);
310  }
Status
Definition: gdiplustypes.h:24
VOID SetDownloadStatus(INT ItemIndex, DownloadStatus Status)
Definition: loaddlg.cpp:285
TCHAR szAppName[128]
Definition: solitaire.cpp:17
BOOL AddItem(INT ItemIndex, LPWSTR lpText)
Definition: loaddlg.cpp:291
ATL::CStringW LoadStatusString(DownloadStatus StatusParam)
Definition: loaddlg.cpp:76

Referenced by LoadList().

◆ Create()

HWND CDowloadingAppsListView::Create ( HWND  hwndParent)
inline

Definition at line 263 of file loaddlg.cpp.

264  {
265  RECT r = {10, 150, 320, 350};
268 
270 
271  AddColumn(0, 150, LVCFMT_LEFT);
272  AddColumn(1, 120, LVCFMT_LEFT);
273 
274  return hwnd;
275  }
#define LVS_NOCOLUMNHEADER
Definition: commctrl.h:2284
#define LVS_SHOWSELALWAYS
Definition: commctrl.h:2267
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define LVS_REPORT
Definition: commctrl.h:2262
#define LVCFMT_LEFT
Definition: commctrl.h:2598
#define WS_CHILD
Definition: pedump.c:617
HWND Create(HWND hWndParent, _U_RECT rect, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
Definition: rosctrls.h:8
static HWND hwndParent
Definition: cryptui.c:300
#define LVS_SINGLESEL
Definition: commctrl.h:2266
unsigned long DWORD
Definition: ntddk_ex.h:95
#define WS_EX_CLIENTEDGE
Definition: winuser.h:384
#define NULL
Definition: types.h:112
#define LVS_NOSORTHEADER
Definition: commctrl.h:2285
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4022
Arabic default style
Definition: afstyles.h:93
#define WS_VISIBLE
Definition: pedump.c:620
BOOL AddColumn(INT Index, INT Width, INT Format)
Definition: loaddlg.cpp:312

Referenced by CDownloadManager::DownloadDlgProc().

◆ LoadList()

VOID CDowloadingAppsListView::LoadList ( ATL::CSimpleArray< DownloadInfo arrInfo)
inline

Definition at line 277 of file loaddlg.cpp.

278  {
279  for (INT i = 0; i < arrInfo.GetSize(); ++i)
280  {
281  AddRow(i, arrInfo[i].szName.GetString(), DLSTATUS_WAITING);
282  }
283  }
static const WCHAR szName[]
Definition: powrprof.c:45
int GetSize() const
Definition: atlsimpcoll.h:104
int32_t INT
Definition: typedefs.h:58
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
VOID AddRow(INT RowIndex, LPCWSTR szAppName, const DownloadStatus Status)
Definition: loaddlg.cpp:304

Referenced by CDownloadManager::DownloadDlgProc().

◆ SetDownloadStatus()

VOID CDowloadingAppsListView::SetDownloadStatus ( INT  ItemIndex,
DownloadStatus  Status 
)
inline

Definition at line 285 of file loaddlg.cpp.

286  {
288  SetItemText(ItemIndex, 1, szBuffer.GetString());
289  }
BOOL SetItemText(int i, int subItem, LPCWSTR text)
Definition: rosctrls.h:186
Status
Definition: gdiplustypes.h:24
PCXSTR GetString() const
Definition: atlsimpstr.h:361
ATL::CStringW LoadStatusString(DownloadStatus StatusParam)
Definition: loaddlg.cpp:76

Referenced by AddRow(), and CDownloadManager::ThreadFunc().


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