i still cant get it to work. here is my setup:
Code:
HACCEL table;
ShowWindow(hwnd, nCmdShow);
UpdateWindow(hwnd);
table=LoadAccelerators(hInstance,
MAKEINTRESOURCE(IDR_ACCELERATOR1));
while(GetMessage(&Msg, NULL, 0, 0) > 0)
{
TranslateAccelerator(hwnd,table,&Msg);
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
i then do the following:
Code:
case WM_COMMAND:
switch (LOWORD(wParam))
{
case ACCEL_QUIT: //this is the ID
//do stuff here
nothing happens. since the whole window is covered by an edit box, which always has focus, i modified it, gave focus to the window, but still nothing. is the order of my operations wrong?