Routine RETURN key to its parent wnd 
Author Message
 Routine RETURN key to its parent wnd

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



Mon, 09 Jul 2001 03:00:00 GMT  
 Routine RETURN key to its parent wnd
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

----------------------------------------

Quote:

>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



Tue, 10 Jul 2001 03:00:00 GMT  
 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



Tue, 10 Jul 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Dialogbar -- Change the size from the parent wnd

2. how to get parent-wnd

3. Child WND coords relative to parent

4. How to map Return key to Tab key

5. Q: How do I embed a splitter wnd in another splitter wnd

6. Wnd::Create vs Wnd::CreateEx

7. How can I open a minimized wnd on top of a maximized wnd

8. Need wnd like channel-wnd in IE4

9. How to write PRESS ANY KEY routine

10. Is it possible to make top-level wnd of any app as child wnd of my app's wnd?

11. Who knows a routine to export a registry key like RegEdit

12. Accessing routine return class?

 

 
Powered by phpBB® Forum Software