ReactOS 0.4.16-dev-1453-g06343fa
srvpage.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INT_PTR CALLBACK ServicesPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 

Variables

HWND hServicesPage
 
HWND hServicesListCtrl
 

Function Documentation

◆ ServicesPageWndProc()

INT_PTR CALLBACK ServicesPageWndProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 22 of file srvpage.c.

23{
25 TCHAR szTemp[256];
26 DWORD dwStyle;
27
30
31 switch (message) {
32 case WM_INITDIALOG:
33
35 hServicesDialog = hDlg;
36
38 dwStyle = dwStyle | LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES;
40
42
43 // Initialize the application page's controls
45
47 column.pszText = szTemp;
48 column.cx = 200;
50
53 column.pszText = szTemp;
54 column.cx = 70;
56
59 column.pszText = szTemp;
60 column.cx = 200;
62
65 column.pszText = szTemp;
66 column.cx = 70;
68
70 DisableAllExcept(hDlg, IDC_SERVICES_LIST); // FIXME: Implement saving
71 return TRUE;
72
73 case WM_NOTIFY:
75 {
76 NMLISTVIEW *pnmlv = (NMLISTVIEW*)lParam;
77 UINT toggled = (pnmlv->uOldState ^ pnmlv->uNewState) & LVIS_STATEIMAGEMASK;
78 if (pnmlv->hdr.code == LVN_ITEMCHANGING && (pnmlv->uChanged & LVIF_STATE) && toggled)
79 {
80 // Only allow checkbox changes during WM_INITDIALOG
82 {
83 MessageBeep(-1);
85 return TRUE;
86 }
87 }
88 }
89 break;
90 }
91
92 return 0;
93}
#define IDC_BTN_SERVICES_ACTIVATE
Definition: resource.h:20
#define IDS_SERVICES_COLUMN_VENDOR
Definition: resource.h:83
#define IDS_SERVICES_COLUMN_SERVICE
Definition: resource.h:81
#define IDS_SERVICES_COLUMN_REQ
Definition: resource.h:82
#define IDC_SERVICES_LIST
Definition: resource.h:17
#define IDS_SERVICES_COLUMN_STATUS
Definition: resource.h:84
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
HINSTANCE hInst
Definition: dxdiag.c:13
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID DisableAllExcept(HWND hTabDlg, UINT idExcept)
Definition: msconfig.c:84
unsigned int UINT
Definition: ndis.h:50
#define DWORD
Definition: nt_native.h:44
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:329
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2641
#define LVIF_STATE
Definition: commctrl.h:2317
#define LVCF_WIDTH
Definition: commctrl.h:2592
#define LVN_ITEMCHANGING
Definition: commctrl.h:3135
#define LVS_EX_CHECKBOXES
Definition: commctrl.h:2736
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2739
#define LVM_GETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2732
#define LVCF_TEXT
Definition: commctrl.h:2593
#define LVIS_STATEIMAGEMASK
Definition: commctrl.h:2331
#define LVM_SETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2729
#define LV_COLUMN
Definition: commctrl.h:2552
#define WM_NOTIFY
Definition: richedit.h:61
HWND hServicesListCtrl
Definition: srvpage.c:16
HWND hServicesDialog
Definition: srvpage.c:17
void GetServices(void)
Definition: srvpage.c:96
Definition: tftpd.h:60
UINT code
Definition: winuser.h:3235
UINT uNewState
Definition: commctrl.h:3041
UINT uOldState
Definition: commctrl.h:3042
#define SetWindowLongPtr
Definition: treelist.c:70
#define SWP_NOACTIVATE
Definition: winuser.h:1253
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOSIZE
Definition: winuser.h:1256
#define WM_INITDIALOG
Definition: winuser.h:1758
BOOL WINAPI MessageBeep(_In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SendMessage
Definition: winuser.h:5928
BOOL WINAPI IsWindowEnabled(_In_ HWND)
#define LoadString
Definition: winuser.h:5904
#define DWLP_MSGRESULT
Definition: winuser.h:881
#define SWP_NOOWNERZORDER
Definition: winuser.h:1260
#define SWP_NOZORDER
Definition: winuser.h:1258
char TCHAR
Definition: xmlstorage.h:189

Variable Documentation

◆ hServicesListCtrl

HWND hServicesListCtrl
extern

Definition at line 16 of file srvpage.c.

Referenced by GetServices(), MsConfigWndProc(), and ServicesPageWndProc().

◆ hServicesPage

HWND hServicesPage
extern

Definition at line 15 of file srvpage.c.

Referenced by MsConfig_OnTabWndSelChange(), MsConfigWndProc(), and OnCreate().