This is my code. My app uses an MDI. INVOKE ShowWindow, hWndFrame, SW_SHOWNORMAL INVOKE UpdateWindow, hWndFrame INVOKE LoadAccelerators, hInst, CR_ACCEL mov hAccel, eax .while TRUE INVOKE GetMessage, addr msg, NULL,0,0 .break .if (!eax) INVOKE TranslateAccelerator, hWndClient, hAccel, addr msg ;INVOKE TranslateMDISysAccel, hWndClient, addr msg .if eax == 0 INVOKE TranslateMessage, addr msg INVOKE DispatchMessage, addr msg .endif .endw ;the following is the way i have handled wm_. i am showing this cause i read in an earlier post that this might also cause some problems. .elseif wMsg == WM_COMMAND mov eax, wParam cwde Why is my accelarator not working. Also cant i use use bot TranslateAccelerator and TranslateMDISysAccel in my prog?
Posted on 2001-06-09 00:24:00 by MovingFulcrum
Change your: INVOKE TranslateAccelerator, hWndClient, hAccel, addr msg To: INVOKE TranslateAccelerator, hWndFrame, hAccel, addr msg Then make sure your MENU and ACCELERATORS are coded right in your resource file. Ewayne
Posted on 2001-06-09 02:30:00 by Ewayne