ALTE DOCUMENTE
|
|||||||
API LoadAccelerators
HACCEL LoadAccelerators (HINSTANCE ThisInst, LPSTR Name);
ThisInst a Name NULL
LoadAccelerators MYMENU
HACCEL hAccel
hAccel LoadAccelerators hThisInst,"Mymenu");
hAccel
LoadAccelerators API. TranslateAccelerator()
int TranslateAccelerator (HWND hwnd,
HACCEL hAccel,
LPMSG lpMess
hwnd hAccel LoadAccelerators lpMess
TranclateAccelerator WM COMMAND
TranslateAccelerator
while(GetMessage(&msg,NULL,0,0))
}
WinMain
include <Windows h>
#include <String.h>
#include <Stdio.h>
#include "Menu.h"
LRESULT CALLBACK WindowFunc(HWND, UINT,
WPARAM, LPARAM);
char szWinName[]=" "; //
int WINAPI WinMain(HINSTANCE hThisInst,
HINSTANCE hPrevInst,
LPSTR lpszArgs,
int nWinMode)
}
return msg.wParam;
}
|