📄 setpick.c
字号:
/****************************************************************
** *
** FILE : SetPick.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 "setpick.h"
#if EN_HANDSET > 0
static INT16U InitRecordProc(void)
{
if (HstCfg.EnableAutoPickup) {
return 0;
} else {
return 1;
}
}
static void StoreProc(void)
{
if (GetMenuWinRecordNum() == 0) {
HstCfg.EnableAutoPickup = TRUE;
} else {
HstCfg.EnableAutoPickup = FALSE;
}
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_SETPICK = {ITEM_FCN, " 设置\n 接听方式", ActivateSelOptionMenu, 0, 0};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -