📄 setcha.c
字号:
/****************************************************************
** *
** FILE : SetCha.C *
** COPYRIGHT : (c) 2001 .Xiamen Yaxon NetWork CO.LTD *
** *
** *
** By : CCH 2002.1.15 *
****************************************************************/
#include "includes.h"
#include "public.h"
#include "prompt.h"
#include "menuwin.h"
#include "itemmenu.h"
#include "setCha.h"
#if EN_HANDSET > 0
static INT16U InitRecordProc(void)
{
if (HstCfg.HandsfreeChannel) {
return 1;
} else {
return 0;
}
}
static void StoreProc(void)
{
if (GetMenuWinRecordNum() == 0) {
HstCfg.HandsfreeChannel = FALSE;
} else {
HstCfg.HandsfreeChannel = TRUE;
}
PopMenuWin();
ActivateStringPrompt("设置成功!");
StorePubPara(HSTCFG_);
}
static ITEMMENU_STRUCT MENU_AUTO = {ITEM_FCN, "手柄", StoreProc, 0, 0};
static ITEMMENU_STRUCT MENU_MANUAL = {ITEM_FCN, "免提", StoreProc, 0, 0};
static ITEMMENU_STRUCT *MENU_SELOPTION_CHILD[] = {&MENU_AUTO, &MENU_MANUAL};
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_SETCHA = {ITEM_FCN, " 设置\n 缺省模式", ActivateSelOptionMenu, 0, 0};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -