ReactOS 0.4.15-dev-7842-g558ab78
lanconnectui.cpp File Reference
#include "precomp.h"
Include dependency graph for lanconnectui.cpp:

Go to the source code of this file.

Functions

VOID AddItemToListView (HWND hDlgCtrl, PNET_ITEM pItem, LPWSTR szName, BOOL bChecked, UINT Image)
 

Function Documentation

◆ AddItemToListView()

VOID AddItemToListView ( HWND  hDlgCtrl,
PNET_ITEM  pItem,
LPWSTR  szName,
BOOL  bChecked,
UINT  Image 
)

Definition at line 29 of file lanconnectui.cpp.

30{
31 LVITEMW lvItem;
32
34 lvItem.pszText = szName;
35 lvItem.lParam = (LPARAM)pItem;
36 lvItem.iImage = Image;
37 lvItem.iItem = 0x7fffffff; // Append at the end of the list.
38 lvItem.iSubItem = 0;
39 lvItem.iItem = SendMessageW(hDlgCtrl, LVM_INSERTITEMW, 0, (LPARAM)&lvItem);
40 ListView_SetCheckState(hDlgCtrl, lvItem.iItem, bChecked);
41}
static const WCHAR szName[]
Definition: powrprof.c:45
#define ListView_SetCheckState(hwndLV, i, fCheck)
Definition: commctrl.h:2674
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_TEXT
Definition: commctrl.h:2309
#define LVIF_IMAGE
Definition: commctrl.h:2310
#define LVM_INSERTITEMW
Definition: commctrl.h:2404
LPWSTR pszText
Definition: commctrl.h:2365
int iSubItem
Definition: commctrl.h:2362
UINT mask
Definition: commctrl.h:2360
LPARAM lParam
Definition: commctrl.h:2368
int iImage
Definition: commctrl.h:2367
LONG_PTR LPARAM
Definition: windef.h:208
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CNetConnectionPropertyUi::EnumComponents().