📄 menu.h
字号:
/******************************************************************************
**
** COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
** This software as well as the software described in it is furnished under
** license and may only be used or copied in accordance with the terms of the
** license. The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel Corporation. Intel Corporation assumes no
** responsibility or liability for any errors or inaccuracies that may appear
** in this document or any software that may be provided in association with
** this document.
** Except as permitted by such license, no part of this document may be
** reproduced, stored in a retrieval system, or transmitted in any form or by
** any means without the express written consent of Intel Corporation.
**
** FILENAME: menu.h
**
** PURPOSE: Menu system header file.
**
** LAST MODIFIED: $Modtime: 7/17/03 1:01p $
******************************************************************************/
#ifndef _menu_h
#define _menu_h
/*
*******************************************************************************
* Local Definitions
*******************************************************************************
*/
#define DM_MenuNumberMask 0xFF // Test number field
#define DM_MenuExit 0x100 // Flag to cause menu loop to exit after command
/*
*******************************************************************************
* Function Pointer Definitions
*******************************************************************************
*/
typedef VOID DM_MenuFunc_T (PVOID arg, PCHAR string);
/*
*******************************************************************************
* Menu Data Structures
*******************************************************************************
*/
typedef struct DM_MenuItem_S
{
INT selectionChar;
PCHAR displayedString;
DM_MenuFunc_T *func;
PVOID arg;
PCHAR cmdParamString;
} DM_MenuItem_T;
typedef struct DM_Menu_S
{
PCHAR banner;
DM_MenuItem_T *menuList;
INT parameter;
} DM_Menu_T;
/*
*******************************************************************************
* EXTERNAL GLOBAL VARIABLES
*******************************************************************************
*/
extern DM_MenuItem_T STUARTMenuList[];
extern DM_Menu_T STUARTMenu;
extern DM_Menu_T OptionMenu;
extern DM_MenuItem_T MainMenuList[];
extern DM_Menu_T MainMenu;
/*
*******************************************************************************
* Function Prototypes.
*******************************************************************************
*/
VOID DM_DoMenu(PVOID, PCHAR);
VOID DM_ReplaceMenuItem (DM_MenuItem_T* sourceMenuListP,
INT sourceMenuListIndex,
DM_MenuItem_T* targetMenuListP,
INT targetMenuListIndex);
#endif /* _menu_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -