CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    40

    sub-Windows - HELP

    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.


  2. #2
    Join Date
    May 1999
    Posts
    7

    Re: sub-Windows - HELP

    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 .


  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: sub-Windows - HELP

    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>

  4. #4
    Guest

    Re: sub-Windows - HELP

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured