正在加载图片...
#include windows. h #"7 1h HMENU hmenu, hadden;//定义菜单句柄 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) int Winapi WinMain(… ShowWindow( hwnd, nCmdShow) UpdateWindow(hwnd) hAccel=LoadAccelerators (hInstance, lpszMenuName) while( getMessage(&Msg, NULL, 0, 0)) 在消息循环中截获加速键消息 if ( TranslateAccelerator(hwnd, hAccel, &Msg)) TranslateMessage( &Msg) DispatchMessage(&Msg) return Msg. wParam; 321 #include "windows.h" #include "7_1.h" HMENU hmenu,haddmenu; //定义菜单句柄 LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); int WINAPI WinMain(……) {…… ShowWindow( hwnd, nCmdShow) ; UpdateWindow(hwnd); hAccel=LoadAccelerators(hInstance,lpszMenuName); while( GetMessage(&Msg, NULL, 0, 0)) { //在消息循环中截获加速键消息 if (!TranslateAccelerator(hwnd,hAccel,&Msg)) { TranslateMessage( &Msg) ; DispatchMessage( &Msg) ; } } return Msg.wParam;}
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有