DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

#define IDM_NEW 0x1002
#define IDM_EXIT 0x1003
#define IDM_HELP 0x1004
#define IDM_ABOUT 0x1005

hMenu = CreateMenu();
hFileMenu = CreateMenu();
hHelpMenu = CreateMenu();

AppendMenu(hFileMenu, MF_STRING, IDM_NEW, TEXT("新建"));
AppendMenu(hFileMenu, MF_STRING, IDM_EXIT, TEXT("退出"));
AppendMenu(hMenu, MF_POPUP, (LONG)hFileMenu, TEXT("游戏(G)"));

AppendMenu(hHelpMenu, MF_STRING, IDM_HELP, TEXT("查看帮助"));
AppendMenu(hHelpMenu, MF_STRING, IDM_ABOUT, TEXT("关于"));
AppendMenu(hMenu, MF_POPUP, (LONG)hHelpMenu, TEXT("帮助"));

SetMenu(hwnd, hMenu);

posted on 2014-05-16 12:33  DoubleLi  阅读(932)  评论(0编辑  收藏  举报