📄 graphicsmenu.h
字号:
/*-----------------------------------------------------------------------------
* Graphics Menu System Module *
* Copyright (c) *
* 2003-03-06 by Yuwu Zhang *
* Beijing.China *
* sun_wizard@163.net *
-----------------------------------------------------------------------------*/
#ifndef __Graphics_Menu_H__
#define __Graphics_Menu_H__
#include "Highbios.h"
typedef struct tagGraphicsMenuItem {
const char * Title;
const BYTE * Buffer;
} GraphicsMenuItem;
typedef struct tagGraphicsMenu {
UINT Count; // 菜单项的总数
UINT Relative; // 相对项,系统变量(用户勿改)
UINT Current; // 当前项
UINT PageSize; // 每一页的行数
bool Closed; // 当前菜单是否关闭
bool AutoToTail; // 是否在菜单的第一项按 UP 时自动转到最后一项
bool AutoToHead; // 是否在菜单的最后一项按 DOWN 时自动转到最一项
const GraphicsMenuItem *Items;// 菜单项
uchar EventArg; // 事件参数,被OnOtherKey使用
Event OnOk; // 需要用户自己实现
Event OnCancel; // 用户自己实现,或者不定义表示ESC无效
Event OnOtherKey; // 用户自己实现,或者不定义
} GraphicsMenu;
void InitializeGraphicsMenu(GraphicsMenu * pMenu, const GraphicsMenuItem *MenuItems, int nItems);
void DrawGraphicsMenu(GraphicsMenu * pMenu);
void ShowGraphicsMenu(GraphicsMenu * pMenu);
void CloseGraphicsMenu(GraphicsMenu * pMenu);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -