setkeypt.c
来自「在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LE」· C语言 代码 · 共 57 行
C
57 行
/****************************************************************
** *
** 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 + =
减小字号Ctrl + -
显示快捷键?