2008-05-04 09:04:14 +00:00
|
|
|
#ifndef CONSOLE_H__
|
|
|
|
#define CONSOLE_H__
|
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wincon.h>
|
2008-05-04 09:04:14 +00:00
|
|
|
#include <commctrl.h>
|
|
|
|
#include <cpl.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <limits.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2008-05-04 09:04:14 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
APPLET_PROC AppletProc;
|
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
typedef struct TAGConsoleInfo
|
|
|
|
{
|
|
|
|
HWND hConsoleWindow;
|
|
|
|
WCHAR szProcessName[MAX_PATH];
|
|
|
|
BOOLEAN AppliedConfig;
|
|
|
|
DWORD UseRasterFonts;
|
|
|
|
DWORD FontSize;
|
|
|
|
DWORD FontWeight;
|
|
|
|
FONTSIGNATURE FontSignature;
|
|
|
|
DWORD CursorSize;
|
|
|
|
DWORD NumberOfHistoryBuffers;
|
|
|
|
DWORD HistoryBufferSize;
|
|
|
|
DWORD HistoryNoDup;
|
|
|
|
DWORD FullScreen;
|
|
|
|
DWORD QuickEdit;
|
|
|
|
DWORD InsertMode;
|
|
|
|
DWORD ScreenBuffer;
|
|
|
|
DWORD WindowSize;
|
|
|
|
DWORD WindowPosition;
|
|
|
|
DWORD ActiveStaticControl;
|
|
|
|
COLORREF ScreenText;
|
|
|
|
COLORREF ScreenBackground;
|
|
|
|
COLORREF PopupText;
|
|
|
|
COLORREF PopupBackground;
|
|
|
|
COLORREF Colors[16];
|
|
|
|
} ConsoleInfo, *PConsoleInfo;
|
|
|
|
|
|
|
|
void ApplyConsoleInfo(HWND hwndDlg, PConsoleInfo pConInfo);
|
|
|
|
void PaintConsole(LPDRAWITEMSTRUCT drawItem, PConsoleInfo pConInfo);
|
|
|
|
void PaintText(LPDRAWITEMSTRUCT drawItem, PConsoleInfo pConInfo);
|
|
|
|
|
|
|
|
#define PM_APPLY_CONSOLE_INFO (WM_APP + 100)
|
|
|
|
|
2011-11-29 14:55:58 +00:00
|
|
|
// Globals
|
2008-05-04 09:04:14 +00:00
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
|
|
|
#endif /* CONSOLE_H__ */
|