ReactOS 0.4.16-dev-297-gc569aee
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
10static const WCHAR szCharacterClipboardFormat[] = L"RosVgaFontChar";
11
16
18wWinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
19{
20 HACCEL hAccel;
21 INT nRet = 1;
22 MSG msg;
24
25 UNREFERENCED_PARAMETER(hPrevInstance);
26 UNREFERENCED_PARAMETER(lpCmdLine);
27
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 msg(x)
Definition: auth_time.c:54
int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
Definition: main.c:788
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:59
#define IDS_APPTITLE
Definition: resource.h:3
HWND CreateMainWindow()
Definition: biditext.c:330
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
HINSTANCE hInst
Definition: dxdiag.c:13
VOID UnInitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:302
BOOL InitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:283
VOID UnInitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:345
BOOL InitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:330
VOID UnInitFontWndClass(VOID)
Definition: fontwnd.c:441
BOOL InitFontWndClass(VOID)
Definition: fontwnd.c:426
PWSTR szAppName
Definition: main.c:14
static const WCHAR szCharacterClipboardFormat[]
Definition: main.c:10
UINT uCharacterClipboardFormat
Definition: main.c:15
HANDLE hProcessHeap
Definition: main.c:13
BOOL InitMainWndClass(VOID)
Definition: mainwnd.c:641
VOID UnInitMainWndClass(VOID)
Definition: mainwnd.c:656
#define IDA_MAINACCELERATORS
Definition: resource.h:18
HACCEL hAccel
Definition: main.c:47
unsigned int UINT
Definition: ndis.h:50
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define L(x)
Definition: ntvdm.h:50
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
uint16_t * PWSTR
Definition: typedefs.h:56
int32_t INT
Definition: typedefs.h:58
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690
#define WINAPI
Definition: msvc.h:6
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG)
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define DispatchMessage
Definition: winuser.h:5777
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define TranslateAccelerator
Definition: winuser.h:5872
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184