l_angelo
asked on
PreTranslateMessage
Hi,
I have created a moeless dialog which gets invoked from a modal dialog.
On clicking F1, help should get invoked from the modeless dialog.
While in the modeless dialog F1 is clicked, the PreTranslateMessage of this dialog is invoked, the help file is opened. Immediately the control is transferred to the main dialog and enters into its PreTranslateMessage and prompts a message stating that the Topic does not exist.
Pl. suggest.
Thank you.
I have created a moeless dialog which gets invoked from a modal dialog.
On clicking F1, help should get invoked from the modeless dialog.
While in the modeless dialog F1 is clicked, the PreTranslateMessage of this dialog is invoked, the help file is opened. Immediately the control is transferred to the main dialog and enters into its PreTranslateMessage and prompts a message stating that the Topic does not exist.
Pl. suggest.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This helps... however we need to return TRUE.
i see, ^_^
try not call base class PreTranslate message for modeless dialog in the case uMsg = WM_KEYDOWN && wParam == VK_F1 - just return TRUE