Click to See Complete Forum and Search --> : sub-Windows - HELP


Azie
April 20th, 1999, 04:17 AM
I am trying to find any examples on creating sub windows. These windows will be open by the users by clicking on buttons.
Could anybody gives me any hints on doing so?
I am not sure whether each window need to be associate with new document and view.

Please HELP me as soon as possible.
Thanks.

fab
April 20th, 1999, 06:06 AM
You can create sub windows using the API function CreateWindow :
in the 8th parameter of this function, you can put the handle of parent window .

MoeRahn
April 20th, 1999, 09:47 AM
If you hear a good solution to this, I'd really like to know, too. I was trying to make a silly little timer for a friend at
work for a typing class she was taking (the timer had to stay on top, and had to give her a 5-minute countdown so she could get her hands in place).
It all works good, except you can't set any variables - it seems unable to spawn a child window for setting the time.

Basically, I need a modal dialogue box to spawn a second modal dialog box. The abstraction of MFC certainly isn't making this very easy!

The Software said "Windows 95 or Better",

<blockquote>So I installed <b>Linux</b></blockquote>

April 20th, 1999, 12:56 PM
in the message handler for the button the user clicked, if you want a modal dialog to appear, use
CMyDialog dlg;
dlg.DoModal();
if it is to me modeless, use CreateWindow