It seems that the problem was with the use of IsDialogMessage( ) in the following loop.
while(GetMessage(&Msg, NULL, 0, 0) > 0)
{
if (!TranslateMDISysAccel(hwndClient, &Msg) &&
!TranslateAccelerator (hwndFrame, hAccel, &Msg) &&
!IsDialogMessage( hwndClient, &Msg ))
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
}
After I commented it out, the problem with accelerators was gone. But then obviously, I cant move among the child windows of an MDI Child Window without the IsDialogMessage() function. Any recommendations on how to solve this?
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
Offline 1,559 posts
since Jun 2005