ReactOS 0.4.16-dev-320-g3bd9ddc
freeldrpage.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 FreeLdrPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 

Variables

LPCWSTR lpszFreeLdrIni
 
LPCWSTR lpszBootIni
 

Function Documentation

◆ FreeLdrPageWndProc()

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

Definition at line 134 of file freeldrpage.c.

135{
136 LRESULT pos;
137
138 switch (message) {
139 case WM_INITDIALOG:
140 hFreeLdrDialog = hDlg;
143 return TRUE;
144 case WM_COMMAND:
145 switch(HIWORD(wParam))
146 {
147 case LBN_SELCHANGE:
149 if (pos != LB_ERR)
150 {
152 if (!res) /* line is not a default one */
153 SendMessage((HWND)lParam, LB_SETCURSEL, Settings.szDefaultPos, 0);
154 else
155 Settings.szDefaultPos = pos;
156
157
158 }
159 break;
160 }
161 }
162 return 0;
163}
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
GLuint res
Definition: glext.h:9613
static BOOL InitializeFreeLDRDialog(HWND hDlg)
Definition: freeldrpage.c:118
HWND hFreeLdrDialog
Definition: freeldrpage.c:13
Definition: tftpd.h:60
#define HIWORD(l)
Definition: typedefs.h:247
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings
Definition: wdfdevice.h:2595
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
#define LB_ERR
Definition: winuser.h:2435
#define SWP_NOACTIVATE
Definition: winuser.h:1245
#define LB_GETITEMDATA
Definition: winuser.h:2044
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define WM_COMMAND
Definition: winuser.h:1743
#define SWP_NOSIZE
Definition: winuser.h:1248
#define WM_INITDIALOG
Definition: winuser.h:1742
#define SendMessage
Definition: winuser.h:5855
#define LBN_SELCHANGE
Definition: winuser.h:2078
#define SWP_NOOWNERZORDER
Definition: winuser.h:1252
#define LB_SETCURSEL
Definition: winuser.h:2066
#define SWP_NOZORDER
Definition: winuser.h:1250
#define LB_GETCURSEL
Definition: winuser.h:2042

Referenced by CreatePropSheet(), and OnCreate().

Variable Documentation

◆ lpszBootIni

LPCWSTR lpszBootIni
extern

Definition at line 22 of file freeldrpage.c.

Referenced by CreatePropSheet().

◆ lpszFreeLdrIni

LPCWSTR lpszFreeLdrIni
extern

Definition at line 21 of file freeldrpage.c.

Referenced by CreatePropSheet().