-
LoadAccelerators?
what will happen if i create a win32app without the following line?
PHP Code:
hAccelTable = LoadAccelerators(hInst, "MapCE");
// Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return msg.wParam;
Will my app still receive all the window messages?
regards,
-
You can leave the LoadAccelerators out, but your window then won't react to accelerator keys (like ctrl+s to save in most programs). Also, you would have to leave the if(!TranslateAccelerator(...)) out (hAccelTable wouldn't be initialized).
-
That code is generated by the Visual C++, and sure I'll remove when those code is not applicable :)
Thx
-
Huh? I wasn't aware Visual C++ generated skeleton raw apps for you...is this new in VC6 or something?
-
no I think he used the "Hello, World" app