#include
<resource.h>
#define ICO_MAIN
Ox1000
//图标
#define IDM_MAIN
Ox2000
//菜单
#define IDA_MAIN
Ox2000
//加速键
#define IDM_OPEN
Ox4101
#define IDM_OPTION
Ox4102
#define IDM_EXIT
Ox4103
#define IDM_SETFONT
Ox4201
#define IDM_SETCOLOR
Ox4202
#define IDM_INACT
Ox4203
#define IDM_GRAY
Ox4204
#define IDM_BIG
Ox4205
#define IDM_SMALL
Ox4206
#define IDM_LIST
Ox4207
#define IDM_DETAIL
Ox4208
#define IDM_TOOLBAR
Ox4209
#define IDM_TOOLBARTEXT
Ox4210
#define IDM_INPUTBAR
Ox4211
#define IDM_STATUSBAR
Ox4212
#define IDM_HELP
Ox4301
#define IDM_ABOUT
Ox4302
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
ICO_MAIN
ICON
"Main.ico"
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
IDM_MAIN
menu discardable
BEGIN
popup
"文件(&F)"
BEGIN
menuitem
"打开文件(&O)...",IDM_OPEN
menuitem
"关闭文件(&C)...",IDM_OPTION
menuitem
separator
menuitem
"退出(&X)",IDM_EXIT
END
popup
"查看(&V)"
BEGIN
menuitem
"字体(&F)...\tAlt+F",IDM_SETFONT
menuitem
"背景色(&B)...\tCtrl+Alt+B",IDM_SETCOLOR
menuitem
separator
menuitem
"被禁用的菜单项",IDM_INACT,INACTIVE
menuitem
"被灰化的菜单项",IDM_GRAY,GRAYED
menuitem
separator
menuitem
"大图标(&G)",IDM_BIG
menuitem
"小图标(&M)",IDM_SMALL
menuitem
"列表(&L)",IDM_LIST
menuitem
"详细资料(&D)",IDM_DETAIL
menuitem
separator
popup
"工具栏(&T)"
BEGIN
menuitem
"标准按钮(&S)",IDM_TOOLBAR
menuitem
"文字标签(&C)",IDM_TOOLBARTEXT
menuitem
"命令栏(&I)",IDM_INPUTBAR
END
menuitem
"状态栏(&U)",IDM_STATUSBAR
END
Popup
"帮助(&H)" ,HELP
BEGIN
menuitem
"帮助主题(&H)\tF1",IDM_HELP
menuitem
separator
menuitem
"关于本程序(&A)...",IDM_ABOUT
END
END
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
IDA_MAIN accelerators
BEGIN
VK_F1,
IDM_HELP,
VIRTKEY
"B",
IDM_SETCOLOR,
VIRTKEY,CONTROL,ALT
"F",
IDM_SETFONT,
VIRTKEY,ALT
END
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
就是这个。
感谢东海一鱼