Does anyone know the correct way to handle Accelerators in modeless
dialog boxes using the Windows 3.1 SDK?
One of the examples which comes with Visual C++ does it the following
way
if (hwndDialog &&
(TranslateAccelerator(hwndDialog, hAccTable, &msg) ||
IsDialogMessage(hwndDialog, &msg)))
continue;
TranslateMessage(&msg);
DispatchMessage(&msg);
However the SDK programmers guide mentions that IsDialog should comes
before any TranslateAccelerator.
So this leaves me a bit confused as to the correct way of handling the
accelerators.
-------------------------
Simon Clarke.
Telecom Research Laboratories