menu_rc.c

来自「在linux下」· C语言 代码 · 共 44 行

C
44
字号
#define MENU_TOTAL 4		/* the number of root menus for menu_bar */		typedef struct _RootMenu{		char *menu_x;	/* pointing to the root menu name */		int menu_num;		//char *( *( *menu_y));	/* pointing to the menu_name table for the root menu above */		/* if any,there are callback funcs corresponding to menu_y[i] */	}RootMenu;		char *file_menu_x[]={		"Quit(Q)"	};	char *view_menu_x[]={		"End process(P)",		"Kill process(K)",		"Change priority(C)",		"Above all(N)"	};	char *edit_menu_x[]={		"Pertain(D)",		"Process(T)",		"Hide process(H)",		"Hided process(H)",		"Memory map(M)",		"Open file(F)"	};	char *help_menu_x[]={		"Category(C)",		"About(A)"	};static RootMenu root_menu[MENU_TOTAL]={			{"File(F)",1},		{"View(V)",4},		{"Edit(E)",6},		{"Help(H)",2}	};	char *( *submenu_y[MENU_TOTAL])={		file_menu_x,		edit_menu_x,		view_menu_x,		help_menu_x	};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?