
Routine RETURN key to its parent wnd
[This followup was posted to microsoft.public.vc.mfc and
a copy was sent to the cited author.]
In article
Quote:
> refer this article
> How to Disable Default Pushbutton Handling for MFC Dialog
> Last reviewed: October 10, 1997
> Article ID: Q122489
> http://support.microsoft.com/support/kb/articles/q122/4/89.asp
> --
> ----------------------------------------
> Rajesh Parikh
> Microsoft Certified Solution Developer
> ----------------------------------------
> >I have a dialog, and want its parent window to process RETURN key. But
> >whenever I press RETURN key, the dialog will automatically disapper. How
> >can I route the RETURN key message to its parent window, and let nothing
> >happen to the dialog window ? thanks for your help.
> >OnCmdMsg() is only for command message, right? Please CC to me when
> >you reply.
> >Thanks,
> >Daxin
I have this same problem. The document you pointed to
talks about removing the default from the OK button. My
dialog has no default button on it. I have 3 dialogs all
associated with a tab control. No buttons on any of
them. I want the Enter key to process the default button
on the dialog where the tab control resides. Instead the
dialog for the tab page is hidden whenever I press Enter.
Thanks,
Jon Greisz