From 7f2c8e1885f8e0cc74a3de206c8cf564b7b54124 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Fri, 1 Oct 2021 10:15:22 -0400 Subject: Added some improved embedded terminal creation routines. Added messages to change foreground and background colors. --- RadTerminal.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 RadTerminal.h (limited to 'RadTerminal.h') diff --git a/RadTerminal.h b/RadTerminal.h new file mode 100644 index 0000000..382871b --- /dev/null +++ b/RadTerminal.h @@ -0,0 +1,16 @@ +#pragma once + + +#define RADTERM_DEAD WM_USER+1 +#define RADTERM_SETFORECOLOR WM_USER+2 /* WPARAM is color */ +#define RADTERM_SETBKGDCOLOR WM_USER+3 /* WPARAM is color */ + +#ifndef BUILD_AS_DLL +#ifdef RADTERM_DLL + +__declspec(dllimport) HWND WINAPI CreateTerminalWindowExW(HINSTANCE hInstance, HWND hParent, LPWSTR fontFace, int fontSize, BOOL darkMode); +__declspec(dllimport) HWND WINAPI CreateTerminalWindowExA(HINSTANCE hInstance, HWND hParent, LPCSTR fontFace, int fontSize, BOOL darkMode); +__declspec(dllimport) HWND WINAPI CreateTerminalWindow(HINSTANCE hInstance, HWND hParent, BOOL darkMode); + +#endif +#endif -- cgit v1.2.3