ReactOS 0.4.16-dev-240-gdb5fa3b
gui.c File Reference
#include "precomp.h"
Include dependency graph for gui.c:

Go to the source code of this file.

Functions

INT_PTR CALLBACK ShutdownGuiProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
 
BOOL ShutdownGuiMain (struct CommandLineOptions opts)
 

Function Documentation

◆ ShutdownGuiMain()

BOOL ShutdownGuiMain ( struct CommandLineOptions  opts)

Definition at line 45 of file gui.c.

46{
49 NULL,
51
52 switch (result)
53 {
54 case IDC_OK:
55 MessageBoxW(NULL, L"This function is unimplemented.", L"Unimplemented", MB_OK);
56 break;
57
58 case IDC_CANCEL:
59 /* Exits the program */
60 break;
61
62 default:
63 MessageBoxW(NULL, L"Dialog Error!", L"Message", MB_OK);
64 return FALSE;
65 }
66
67 return TRUE;
68}
#define IDC_OK
Definition: resource.h:59
#define IDC_CANCEL
Definition: resource.h:60
INT_PTR CALLBACK ShutdownGuiProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: gui.c:11
#define IDD_GUI
Definition: resource.h:56
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
GLuint64EXT * result
Definition: glext.h:11304
#define L(x)
Definition: ntvdm.h:50
int32_t INT_PTR
Definition: typedefs.h:64
#define GetModuleHandle
Definition: winbase.h:3852
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4402
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_OK
Definition: winuser.h:793
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by wmain().

◆ ShutdownGuiProc()

INT_PTR CALLBACK ShutdownGuiProc ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 11 of file gui.c.

12{
13 switch(msg)
14 {
15 case WM_INITDIALOG:
16 break;
17
18 case WM_COMMAND:
19 switch(LOWORD(wparam))
20 {
21 case IDC_OK:
23 break;
24 case IDC_CANCEL:
26 break;
27 }
28 break;
29
30 case WM_CLOSE:
31 EndDialog(hwnd, 0);
32 break;
33
34 default:
35 return FALSE;
36 }
37
38 return TRUE;
39}
@ wparam
Definition: SystemMenu.c:30
#define msg(x)
Definition: auth_time.c:54
#define LOWORD(l)
Definition: pedump.c:82
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define WM_CLOSE
Definition: winuser.h:1624
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_INITDIALOG
Definition: winuser.h:1742
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

Referenced by ShutdownGuiMain().