📄 dialogbox.h
字号:
/* !! DO NOT REMOVE THIS COMMENT !!
*
* Author: Ga歱er Raj歟k
* E-mail, updates & bugs report: gape.korn@volja.net
*
* Created: 01.06.2003 at 14.46
*
* Description: structure and prototype function for the DIALOGBOX component source
*
*/
# ifndef DIALOGBOX_H
# define DIALOGBOX_H
// structure for console characters
typedef struct _CONSOLE_DATA
{
char Characters[80][80];
WORD Colors[80][80];
} CONSOLE_DATA;
// structure for the DIALOGBOX component
typedef struct DIALOGBOX
{
short x, y, EnableShadow, Active, DoubleLineBorder, Length, Height;
short EnableExitIcon, EnableHelpIcon, LeftAlignedTitle, RightAlignedTitle, CenterAlignedTitle;
short ExitIconClicked, HelpIconClicked, IsInitialized;
unsigned int InputCodePage, OutputCodePage;
unsigned short BorderColor, IconColor, IconHighLightColor, TitleColor, ShadowColor;
char Pattern, Title[80];
char TitlePattern, ShadowPattern;
CONSOLE_DATA Data;
} DIALOGBOX_COMPONENT;
// constants for the exit and help icon
# define X_EXITICON (DialogBox->x + DialogBox->Length - 4)
# define X_HELPICON (DialogBox->x + DialogBox->Length - 6)
# define Y_ICON (DialogBox->y)
# define EXITICON 'X'
# define HELPICON '?'
// function prototype
DIALOGBOX_COMPONENT *DialogBoxComponent (DIALOGBOX_COMPONENT *DialogBox, INPUT_RECORD ir, short Initialize);
CONSOLE_DATA ReadDialogBoxData (CONSOLE_DATA cc, short ReadX, short ReadY, short ReadLength, short ReadHeight);
void WriteDialogBoxData (CONSOLE_DATA cc, short WriteX, short WriteY, short WriteLength, short WriteHeight);
# endif // DIALOGBOX_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -