ReactOS  0.4.13-dev-544-gede3fdd
main.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS VGA Font Editor
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Main entry point of the application
5  * COPYRIGHT: Copyright 2008 Colin Finck (colin@reactos.org)
6  */
7 
8 #include "precomp.h"
9 
10 static const WCHAR szCharacterClipboardFormat[] = L"RosVgaFontChar";
11 
16 
17 INT WINAPI
18 wWinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
19 {
20  HACCEL hAccel;
21  INT nRet = 1;
22  MSG msg;
23  PMAIN_WND_INFO Info = 0;
24 
25  UNREFERENCED_PARAMETER(hPrevInstance);
26  UNREFERENCED_PARAMETER(lpCmdLine);
27 
28  hInstance = hInst;
30 
32 
34 
37  return 1;
38 
40  {
41  if( CreateMainWindow(nCmdShow, &Info) )
42  {
43  while( GetMessageW(&msg, NULL, 0, 0) )
44  {
45  if( !TranslateMDISysAccel(Info->hMdiClient, &msg) &&
46  !TranslateAccelerator(Info->hMainWnd, hAccel, &msg) )
47  {
50  }
51  }
52 
53  nRet = 0;
54  }
55  }
56 
58 
59  // Just unregister our window classes, don't care whether they were created or not
64 
65  return nRet;
66 }
#define TranslateAccelerator
Definition: winuser.h:5726
#define DispatchMessage
Definition: winuser.h:5631
BOOL WINAPI TranslateMessage(_In_ const MSG *)
VOID UnInitFontWndClass(VOID)
Definition: fontwnd.c:436
#define IDS_APPTITLE
Definition: resource.h:3
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
uint16_t * PWSTR
Definition: typedefs.h:54
BOOL InitMainWndClass(VOID)
Definition: mainwnd.c:641
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
VOID UnInitMainWndClass(VOID)
Definition: mainwnd.c:656
static INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:60
VOID UnInitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:302
static const WCHAR szCharacterClipboardFormat[]
Definition: main.c:10
int32_t INT
Definition: typedefs.h:56
struct TraceInfo Info
HINSTANCE hInst
Definition: main.c:29
HACCEL hAccel
Definition: main.c:47
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:395
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WINAPI
Definition: msvc.h:8
HINSTANCE hInstance
Definition: main.c:36
PWSTR szAppName
Definition: main.c:14
static const WCHAR L[]
Definition: oid.c:1250
HANDLE hProcessHeap
Definition: main.c:13
BOOL InitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:337
unsigned int UINT
Definition: ndis.h:50
#define IDA_MAINACCELERATORS
Definition: resource.h:18
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
#define msg(x)
Definition: auth_time.c:54
VOID UnInitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:352
BOOL InitFontWndClass(VOID)
Definition: fontwnd.c:421
BOOL InitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:283
int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
Definition: main.c:420
UINT uCharacterClipboardFormat
Definition: main.c:15
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define HeapFree(x, y, z)
Definition: compat.h:394
BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG)
HWND CreateMainWindow(LPCTSTR lpCaption, int nCmdShow)
Definition: mainwnd.c:920