Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Killing the parent Window keeping the child and about tab key.

1 view
Skip to first unread message

Saint Atique

unread,
Nov 19, 2009, 6:41:45 AM11/19/09
to
I want to kill the parent window after its task is done and create a
child window to proceed the next tasks. How can close the parent
Window or deactivate it so that program doesn't quit!

I have some edit control, buttons in the Parent Window. When I press
tab focus doesn't move to next one.

Plz give me hints.

I'm a beginner. Plz pardon my mistakes.

--------------------------------------------------------------
Windows Seven Ultimate x86
Vistual Studio 2008 Pro

Alain

unread,
Nov 19, 2009, 3:01:58 PM11/19/09
to
"Saint Atique" <uni...@gmail.com> a �crit dans le message de news:
dd0a03de-ff95-4133...@g27g2000yqn.googlegroups.com...

>I want to kill the parent window after its task is done and create a
> child window to proceed the next tasks. How can close the parent
> Window or deactivate it so that program doesn't quit!

Don't call PostQuitMessage() when you destroy it or simply hide it
(ShowWindow())


Saint Atique

unread,
Nov 21, 2009, 4:12:43 AM11/21/09
to
When I press the focus from one child windows doesn't move to the
next. What's the fix? I have used WS_TABSTOP.

Richard Russell

unread,
Nov 21, 2009, 5:23:29 AM11/21/09
to
On Nov 21, 9:12 am, Saint Atique <uni...@gmail.com> wrote:
> When I press the focus from one child windows doesn't move to the
> next. What's the fix? I have used WS_TABSTOP.

Navigation using the Tab key requires that you call IsDialogMessage()
in your message pump (message loop). Despite its name, you can call
it for any window that contains child controls. See:

http://msdn.microsoft.com/en-us/library/ms645498.aspx

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.

Saint Atique

unread,
Nov 22, 2009, 2:37:48 PM11/22/09
to
Thanks very much. It works.
0 new messages