求美食大战老鼠最新代码。(新换的代码。) 50
1个回答
2016-01-30
展开全部
case WM_COMMAND:
wmId = LOWORD(wParam);//哪一个菜单项
wmEvent = HIWORD(wParam);
// 分析菜单选择:
switch (wmId)
{//菜单选项,关于
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
//菜单选项,退出
case IDM_EXIT:
if (IDYES == MessageBox(hWnd, _T("是否真的退出?"), _T("Test By EbowTang"), MB_YESNO))
{
DestroyWindow(hWnd);
}
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
wmId = LOWORD(wParam);//哪一个菜单项
wmEvent = HIWORD(wParam);
// 分析菜单选择:
switch (wmId)
{//菜单选项,关于
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
//菜单选项,退出
case IDM_EXIT:
if (IDYES == MessageBox(hWnd, _T("是否真的退出?"), _T("Test By EbowTang"), MB_YESNO))
{
DestroyWindow(hWnd);
}
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询