ReactOS 0.4.15-dev-6675-gcbc63d8
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}
static const WCHAR szName[]
Definition: powrprof.c:45
#define ListView_SetCheckState(hwndLV, i, fCheck)
Definition: commctrl.h:2674
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2307
#define LVIF_PARAM
Definition: commctrl.h:2311
#define LVIF_TEXT
Definition: commctrl.h:2309
#define LVM_INSERTITEMW
Definition: commctrl.h:2404
LPWSTR pszText
Definition: commctrl.h:2365
UINT mask
Definition: commctrl.h:2360
LPARAM lParam
Definition: commctrl.h:2368
#define ZeroMemory
Definition: winbase.h:1700
LONG_PTR LPARAM
Definition: windef.h:208
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by CNetConnectionPropertyUi::EnumComponents().