ReactOS  0.4.12-dev-43-g63b00d8
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.

Referenced by wmain().

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 TRUE
Definition: types.h:120
int32_t INT_PTR
Definition: typedefs.h:62
smooth NULL
Definition: ftsmooth.c:416
#define IDC_CANCEL
Definition: resource.h:60
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4268
#define IDD_GUI
Definition: resource.h:56
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
static const WCHAR L[]
Definition: oid.c:1087
#define GetModuleHandle
Definition: winbase.h:3641
#define MB_OK
Definition: winuser.h:784
INT_PTR CALLBACK ShutdownGuiProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: gui.c:11
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
GLuint64EXT * result
Definition: glext.h:11304
#define IDC_OK
Definition: resource.h:59

◆ ShutdownGuiProc()

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

Definition at line 11 of file gui.c.

Referenced by ShutdownGuiMain().

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:
22  EndDialog(hwnd, IDC_OK);
23  break;
24  case IDC_CANCEL:
25  EndDialog(hwnd, 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 }
#define TRUE
Definition: types.h:120
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
UINT msg
Definition: msvc.h:92
#define IDC_CANCEL
Definition: resource.h:60
#define WM_CLOSE
Definition: winuser.h:1603
#define WM_COMMAND
Definition: winuser.h:1716
#define IDC_OK
Definition: resource.h:59
#define WM_INITDIALOG
Definition: winuser.h:1715
#define LOWORD(l)
Definition: pedump.c:82
UINT WPARAM wparam
Definition: msvc.h:92