📄 setkeypt.c
字号:
/****************************************************************
** *
** FILE : SetKeyPT.C *
** COPYRIGHT : (c) 2001 .Xiamen Yaxon NetWork CO.LTD *
** *
** *
** By : CCH 2002.1.15 *
****************************************************************/
#include "includes.h"
#include "public.h"
#include "hstctl.h"
#include "prompt.h"
#include "menuwin.h"
#include "itemmenu.h"
#include "setkeypt.h"
#if EN_HANDSET > 0
static INT16U InitRecordProc(void)
{
if (HstCfg.EnableKeyPrompt) {
return 0;
} else {
return 1;
}
}
static void StoreProc(void)
{
if (GetMenuWinRecordNum() == 0) {
HstCfg.EnableKeyPrompt = TRUE;
TurnonKeyPrompt();
} else {
HstCfg.EnableKeyPrompt = FALSE;
TurnoffKeyPrompt();
}
PopMenuWin();
ActivateStringPrompt("设置成功!");
StorePubPara(HSTCFG_);
}
static ITEMMENU_STRUCT MENU_OPEN = {ITEM_FCN, "开", StoreProc, 0, 0};
static ITEMMENU_STRUCT MENU_CLOSE = {ITEM_FCN, "关", StoreProc, 0, 0};
static ITEMMENU_STRUCT *MENU_SELOPTION_CHILD[] = {&MENU_OPEN, &MENU_CLOSE};
static ITEMMENU_STRUCT MENU_SELOPTION = {ITEM_LMENU, 0, 0, 2, MENU_SELOPTION_CHILD};
static void ActivateSelOptionMenu(void)
{
ActivateItemMenu_Init(&MENU_SELOPTION, InitRecordProc);
}
ITEMMENU_STRUCT MENU_SETKEYPT = {ITEM_FCN, " 设置\n 按键音", ActivateSelOptionMenu, 0, 0};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -