Link to home
Start Free TrialLog in
Avatar of l_angelo
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.
Avatar of migel
migel

Hi!
try not call base class PreTranslate message for modeless dialog in the case uMsg = WM_KEYDOWN && wParam == VK_F1 - just return TRUE
ASKER CERTIFIED SOLUTION
Avatar of orange_juice
orange_juice

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of l_angelo

ASKER

This helps... however we need to return TRUE.
i see, ^_^