Sync to trunk revision 63922.
[reactos.git] / dll / cpl / console / console.h
1 #ifndef CONSOLE_H__
2 #define CONSOLE_H__
3
4 #include <stdio.h>
5
6 #define WIN32_NO_STATUS
7
8 #include <windef.h>
9 #include <winbase.h>
10 #include <wingdi.h>
11 #include <winuser.h>
12 #include <wincon.h>
13 #include <commctrl.h>
14 #include <cpl.h>
15
16 #include "resource.h"
17
18 #define EnableDlgItem(hDlg, nID, bEnable) \
19 EnableWindow(GetDlgItem((hDlg), (nID)), (bEnable))
20
21 /* Shared header with the GUI Terminal Front-End from consrv.dll */
22 #include "consolecpl.h"
23
24 typedef struct
25 {
26 int idIcon;
27 int idName;
28 int idDescription;
29 APPLET_PROC AppletProc;
30 } APPLET, *PAPPLET;
31
32 typedef enum _TEXT_TYPE
33 {
34 Screen,
35 Popup
36 } TEXT_TYPE;
37
38 BOOL ApplyConsoleInfo(HWND hwndDlg, PCONSOLE_PROPS pConInfo);
39 VOID PaintConsole(LPDRAWITEMSTRUCT drawItem, PCONSOLE_PROPS pConInfo);
40 BOOL PaintText(LPDRAWITEMSTRUCT drawItem, PCONSOLE_PROPS pConInfo, TEXT_TYPE TextMode);
41
42 // Globals
43 extern HINSTANCE hApplet;
44
45 #endif /* CONSOLE_H__ */