ReactOS  0.4.13-dev-551-gf37fb1f
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 CUiWindow< CListView >
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 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)
 
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)
 

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 260 of file loaddlg.cpp.

Member Function Documentation

◆ AddColumn()

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

Definition at line 314 of file loaddlg.cpp.

315  {
316  LVCOLUMNW Column;
317  ZeroMemory(&Column, sizeof(Column));
318 
319  Column.mask = LVCF_FMT | LVCF_WIDTH | LVCF_SUBITEM;
320  Column.iSubItem = Index;
321  Column.cx = Width;
322  Column.fmt = Format;
323 
324  return (InsertColumn(Index, &Column) == -1) ? FALSE : TRUE;
325  }
#define TRUE
Definition: types.h:120
#define LVCF_WIDTH
Definition: commctrl.h:2559
#define ZeroMemory
Definition: winbase.h:1635
#define LVCF_SUBITEM
Definition: commctrl.h:2561
static const UCHAR Index[8]
Definition: usbohci.c:18
#define LVCF_FMT
Definition: commctrl.h:2558
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:1194

Referenced by Create().

◆ AddItem()

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

Definition at line 293 of file loaddlg.cpp.

294  {
295  LVITEMW Item;
296 
297  ZeroMemory(&Item, sizeof(Item));
298 
299  Item.mask = LVIF_TEXT | LVIF_STATE;
300  Item.pszText = lpText;
301  Item.iItem = ItemIndex;
302 
303  return InsertItem(&Item);
304  }
#define ZeroMemory
Definition: winbase.h:1635
#define LVIF_TEXT
Definition: commctrl.h:2281
LPWSTR pszText
Definition: commctrl.h:2337
UINT mask
Definition: commctrl.h:2332
int InsertItem(const LV_ITEM *pitem)
Definition: rosctrls.h:96
#define LVIF_STATE
Definition: commctrl.h:2284

Referenced by AddRow().

◆ AddRow()

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

Definition at line 306 of file loaddlg.cpp.

307  {
309  AddItem(RowIndex,
310  const_cast<LPWSTR>(szAppName));
311  SetDownloadStatus(RowIndex, Status);
312  }
VOID SetDownloadStatus(INT ItemIndex, DownloadStatus Status)
Definition: loaddlg.cpp:286
static const WCHAR szStatus[]
Definition: http.c:73
Status
Definition: gdiplustypes.h:24
TCHAR szAppName[128]
Definition: solitaire.cpp:16
BOOL AddItem(INT ItemIndex, LPWSTR lpText)
Definition: loaddlg.cpp:293
ATL::CStringW LoadStatusString(DownloadStatus StatusParam)
Definition: loaddlg.cpp:64

Referenced by LoadList().

◆ Create()

HWND CDowloadingAppsListView::Create ( HWND  hwndParent)
inline

Definition at line 264 of file loaddlg.cpp.

265  {
266  RECT r = {10, 150, 320, 350};
269 
271 
272  AddColumn(0, 150, LVCFMT_LEFT);
273  AddColumn(1, 120, LVCFMT_LEFT);
274 
275  return hwnd;
276  }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define LVS_NOCOLUMNHEADER
Definition: commctrl.h:2256
#define LVS_SHOWSELALWAYS
Definition: commctrl.h:2239
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define LVS_REPORT
Definition: commctrl.h:2234
#define LVCFMT_LEFT
Definition: commctrl.h:2570
#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
smooth NULL
Definition: ftsmooth.c:416
static HWND hwndParent
Definition: cryptui.c:300
#define LVS_SINGLESEL
Definition: commctrl.h:2238
unsigned long DWORD
Definition: ntddk_ex.h:95
#define WS_EX_CLIENTEDGE
Definition: winuser.h:384
#define LVS_NOSORTHEADER
Definition: commctrl.h:2257
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:314

Referenced by CDownloadManager::DownloadDlgProc().

◆ LoadList()

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

Definition at line 278 of file loaddlg.cpp.

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

Referenced by CDownloadManager::DownloadDlgProc().

◆ SetDownloadStatus()

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

Definition at line 286 of file loaddlg.cpp.

287  {
290  ListView_SetItemText(hListView, ItemIndex, 1, const_cast<LPWSTR>(szBuffer.GetString()));
291  }
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
Definition: commctrl.h:2663
PCXSTR GetString() const
Definition: atlsimpstr.h:361
Status
Definition: gdiplustypes.h:24
HWND hListView
Definition: gui.cpp:29
ATL::CStringW LoadStatusString(DownloadStatus StatusParam)
Definition: loaddlg.cpp:64

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


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