我用evc4.0编写程序,其中有一段代码:
// DoCreateMain - Process WM_CREATE message for window.
//
LRESULT DoCreateMain (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
{
HWND hwndCB;
// Create a command bar.
hwndCB = CommandBar_Create (hInst, hWnd, IDC_CMDBAR);
//CommandBar_InsertMenubar(hwndCB,hInst,ID_MENU,0);
return 0;
}
//---------------------------------------------------------------------
原本是增加菜单栏的,在模拟器上仿真也没有出现问题,和没有“CommandBar_InsertMenubar(hwndCB,hInst,ID_MENU,0);”语句的效果一样,请问有人知道为什么吗?谢谢!