[CALC] Fix input bug when display is in error. (#5988)
[reactos.git] / base / applications / charmap_new / MainWindow.h
1 #pragma once
2 #include "GridView.h"
3
4 class CCharMapWindow
5 {
6 HWND m_hMainWnd;
7 HWND m_hStatusBar;
8 int m_CmdShow;
9 HMODULE m_hRichEd;
10
11 CGridView *m_GridView;
12
13 public:
14 CCharMapWindow(void);
15 ~CCharMapWindow(void);
16
17 bool Create(
18 _In_ HINSTANCE hInst,
19 _In_ int nCmdShow
20 );
21
22 private:
23 static INT_PTR CALLBACK DialogProc(
24 _In_ HWND hwndDlg,
25 _In_ UINT uMsg,
26 _In_ WPARAM wParam,
27 _In_ LPARAM lParam
28 );
29
30 bool Initialize(
31 _In_z_ LPCTSTR lpCaption,
32 _In_ int nCmdShow
33 );
34
35 int Run();
36 void Uninitialize(void);
37
38 BOOL OnCreate(
39 _In_ HWND hwnd
40 );
41
42 BOOL OnDestroy(void);
43 BOOL OnSize(void);
44
45 BOOL OnNotify(
46 _In_ LPARAM lParam
47 );
48
49 BOOL OnContext(
50 _In_ LPARAM lParam
51 );
52
53 BOOL OnCommand(
54 _In_ WPARAM wParam,
55 LPARAM lParam
56 );
57
58 bool CreateStatusBar(void);
59
60 bool StatusBarLoadString(
61 _In_ HWND hStatusBar,
62 _In_ INT PartId,
63 _In_ HINSTANCE hInstance,
64 _In_ UINT uID
65 );
66
67 void UpdateStatusBar(
68 _In_ bool InMenuLoop
69 );
70
71 static int CALLBACK
72 EnumDisplayFont(
73 ENUMLOGFONTEXW *lpelfe,
74 NEWTEXTMETRICEXW *lpntme,
75 DWORD FontType,
76 LPARAM lParam
77 );
78
79 bool CreateFontComboBox(
80 );
81
82 bool ChangeMapFont(
83 );
84 };