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

Function Documentation

◆ AddItemToListView()

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

Definition at line 25 of file lanconnectui.cpp.

26 {
27  LVITEMW lvItem;
28 
29  ZeroMemory(&lvItem, sizeof(lvItem));
30  lvItem.mask = LVIF_TEXT | LVIF_PARAM;
31  lvItem.pszText = szName;
32  lvItem.lParam = (LPARAM)pItem;
33  lvItem.iItem = ListView_GetItemCount(hDlgCtrl);
34  lvItem.iItem = SendMessageW(hDlgCtrl, LVM_INSERTITEMW, 0, (LPARAM)&lvItem);
35  ListView_SetCheckState(hDlgCtrl, lvItem.iItem, bChecked);
36 }
#define ZeroMemory
Definition: winbase.h:1635
#define LVIF_TEXT
Definition: commctrl.h:2281
LPARAM lParam
Definition: commctrl.h:2340
LONG_PTR LPARAM
Definition: windef.h:208
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2279
LPWSTR pszText
Definition: commctrl.h:2337
UINT mask
Definition: commctrl.h:2332
#define LVM_INSERTITEMW
Definition: commctrl.h:2376
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define ListView_SetCheckState(hwndLV, i, fCheck)
Definition: commctrl.h:2646
static const WCHAR szName[]
Definition: msipriv.h:1194
#define LVIF_PARAM
Definition: commctrl.h:2283

Referenced by CNetConnectionPropertyUi::EnumComponents().