871663eec447814da6555e063222ef1cbfc5b850
[reactos.git] / reactos / dll / cpl / console / console.h
1 #ifndef CONSOLE_H__
2 #define CONSOLE_H__
3
4 #include <stdio.h>
5 #include <wchar.h>
6
7 #define WIN32_NO_STATUS
8
9 #include <windef.h>
10 #include <winbase.h>
11 #include <wingdi.h>
12 #include <winnls.h>
13 #include <winreg.h>
14 #include <winuser.h>
15 #include <wincon.h>
16 #include <commctrl.h>
17 #include <cpl.h>
18
19 #include <strsafe.h>
20
21 #include "resource.h"
22
23 #define EnableDlgItem(hDlg, nID, bEnable) \
24 EnableWindow(GetDlgItem((hDlg), (nID)), (bEnable))
25
26 /* Shared header with the GUI Terminal Front-End from consrv.dll */
27 #include "settings.h" // in /winsrv/concfg/
28
29 typedef enum _TEXT_TYPE
30 {
31 Screen,
32 Popup
33 } TEXT_TYPE;
34
35 /* Globals */
36 extern PCONSOLE_STATE_INFO ConInfo;
37
38 VOID ApplyConsoleInfo(HWND hwndDlg);
39 BYTE CodePageToCharSet(UINT CodePage);
40 VOID PaintConsole(LPDRAWITEMSTRUCT drawItem, PCONSOLE_STATE_INFO pConInfo);
41 BOOL PaintText(LPDRAWITEMSTRUCT drawItem, PCONSOLE_STATE_INFO pConInfo, TEXT_TYPE TextMode);
42
43 #endif /* CONSOLE_H__ */