ReactOS  0.4.13-dev-249-gcba1a2f
console.h
Go to the documentation of this file.
1 #ifndef CONSOLE_H__
2 #define CONSOLE_H__
3 
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <wchar.h>
7 
8 #define WIN32_NO_STATUS
9 
10 #include <windef.h>
11 #include <winbase.h>
12 
13 #include <wincon.h>
14 #include <wingdi.h>
15 #include <winnls.h>
16 #include <winreg.h>
17 
18 #include <winuser.h>
19 #include <commctrl.h>
20 #include <cpl.h>
21 
22 #include <strsafe.h>
23 
24 #include "resource.h"
25 
26 #define EnableDlgItem(hDlg, nID, bEnable) \
27  EnableWindow(GetDlgItem((hDlg), (nID)), (bEnable))
28 
29 /* Shared header with the GUI Terminal Front-End from consrv.dll */
30 #include "concfg.h" // in /winsrv/concfg/
31 
32 typedef enum _TEXT_TYPE
33 {
36 } TEXT_TYPE;
37 
38 typedef struct _FONT_PREVIEW
39 {
43 } FONT_PREVIEW;
44 
45 /* Globals */
46 extern HINSTANCE hApplet;
49 
50 VOID ApplyConsoleInfo(HWND hwndDlg);
51 
52 
53 VOID
55  IN FONT_PREVIEW* Preview,
56  IN PCONSOLE_STATE_INFO pConInfo);
57 
58 VOID
60  IN FONT_PREVIEW* Preview,
61  IN HFONT hFont,
64 
65 #define ResetFontPreview(Preview) \
66  UpdateFontPreview((Preview), NULL, 0, 0)
67 
68 
69 /* Preview Windows */
70 BOOL
73 
74 BOOL
77 
78 
79 VOID
80 PaintText(
81  IN LPDRAWITEMSTRUCT drawItem,
82  IN PCONSOLE_STATE_INFO pConInfo,
83  IN TEXT_TYPE TextMode);
84 
85 
86 struct _LIST_CTL;
87 
88 typedef INT (*PLIST_GETCOUNT)(IN struct _LIST_CTL* ListCtl);
89 typedef ULONG_PTR (*PLIST_GETDATA)(IN struct _LIST_CTL* ListCtl, IN INT Index);
90 
91 typedef struct _LIST_CTL
92 {
97 
98 UINT
100  IN PLIST_CTL ListCtl,
102  IN UINT itemStart,
103  IN UINT itemEnd,
104  OUT PUINT pValueItem OPTIONAL,
105  IN BOOL BisectRightOrLeft);
106 
107 UINT
109  IN PLIST_CTL ListCtl,
111  OUT PUINT pValueItem OPTIONAL,
112  IN BOOL BisectRightOrLeft);
113 
114 #endif /* CONSOLE_H__ */
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
#define IN
Definition: typedefs.h:38
_TEXT_TYPE
Definition: console.h:32
#define INT
Definition: polytest.cpp:20
INT(* PLIST_GETCOUNT)(IN struct _LIST_CTL *ListCtl)
Definition: console.h:88
VOID UpdateFontPreview(IN FONT_PREVIEW *Preview, IN HFONT hFont, IN UINT CharWidth, IN UINT CharHeight)
Definition: font.c:61
int32_t INT
Definition: typedefs.h:56
HFONT hFont
Definition: main.c:53
HWND hWndList
Definition: console.h:93
uint32_t ULONG_PTR
Definition: typedefs.h:63
UINT CharHeight
Definition: console.h:42
HINSTANCE hInstance
Definition: charmap.c:20
struct _LIST_CTL LIST_CTL
unsigned int BOOL
Definition: ntddk_ex.h:94
VOID ApplyConsoleInfo(HWND hwndDlg)
Definition: console.c:88
UINT BisectListSortedByValueEx(IN PLIST_CTL ListCtl, IN ULONG_PTR Value, IN UINT itemStart, IN UINT itemEnd, OUT PUINT pValueItem OPTIONAL, IN BOOL BisectRightOrLeft)
Definition: utils.c:39
BOOL UnRegisterWinPrevClass(IN HINSTANCE hInstance)
Definition: layout.c:52
ULONG_PTR(* PLIST_GETDATA)(IN struct _LIST_CTL *ListCtl, IN INT Index)
Definition: console.h:89
static int CharHeight
Definition: carets.c:8
static const UCHAR Index[8]
Definition: usbohci.c:18
HINSTANCE hApplet
Definition: access.c:17
PLIST_GETDATA GetData
Definition: console.h:95
static int CharWidth
Definition: carets.c:7
PLIST_GETCOUNT GetCount
Definition: console.h:94
struct _LIST_CTL * PLIST_CTL
HFONT hFont
Definition: console.h:40
enum _TEXT_TYPE TEXT_TYPE
Definition: console.h:35
FONT_PREVIEW FontPreview
Definition: font.c:21
struct _FONT_PREVIEW FONT_PREVIEW
VOID RefreshFontPreview(IN FONT_PREVIEW *Preview, IN PCONSOLE_STATE_INFO pConInfo)
Definition: font.c:49
unsigned int UINT
Definition: ndis.h:50
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
PCONSOLE_STATE_INFO ConInfo
Definition: console.c:23
#define OUT
Definition: typedefs.h:39
#define ULONG_PTR
Definition: config.h:101
Definition: console.h:34
UINT BisectListSortedByValue(IN PLIST_CTL ListCtl, IN ULONG_PTR Value, OUT PUINT pValueItem OPTIONAL, IN BOOL BisectRightOrLeft)
Definition: utils.c:115
BOOL RegisterWinPrevClass(IN HINSTANCE hInstance)
Definition: layout.c:32
VOID PaintText(IN LPDRAWITEMSTRUCT drawItem, IN PCONSOLE_STATE_INFO pConInfo, IN TEXT_TYPE TextMode)
Definition: layout.c:471
UINT CharWidth
Definition: console.h:41
unsigned int * PUINT
Definition: ndis.h:50
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68