Help with child windows

This is a discussion on Help with child windows within the Windows Programming forums, part of the Platform Specific Boards category; Ok so I have this code below, I want to be able to hide the windows in the beginning then ...

  1. #1
    *this
    Join Date
    Mar 2005
    Posts
    498

    Help with child windows

    Ok so I have this code below, I want to be able to hide the windows in the beginning then unhide them so that If a user chooses to enrypt it will unhide the encryption window. I'm lost at how to do it.
    Attached Files Attached Files

  2. #2
    *this
    Join Date
    Mar 2005
    Posts
    498

    Question

    Does anyone know how to use child windows? How would I hide them when I create them, then make them visible?

    It seems that with my code, they overlapp each other, but what I want to do is when the user makes a choice on the main window, change to the corresponding child window.
    Last edited by JoshR; 07-30-2005 at 12:01 PM.

  3. #3
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Try this, create the child window, then call the function ShowWindow and for the second argument pass SW_HIDE, then when you want it shown call ShowWindow again and pass SW_SHOW as the second argument. I never tried this with child windows but they are still windows so it should work, if not let me know.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  4. #4
    *this
    Join Date
    Mar 2005
    Posts
    498
    Thanks a bunch, I actually thought about using it, but I guess I forgot or passed it up or something...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 05:13 PM
  2. Displaying Text on MDI child windows
    By EmbeddedC in forum Windows Programming
    Replies: 4
    Last Post: 10-30-2008, 01:28 PM
  3. Keeping child windows in their place
    By Smallz in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2006, 07:22 AM
  4. Child Windows and Messages
    By Terrell in forum Windows Programming
    Replies: 10
    Last Post: 09-05-2002, 07:39 AM
  5. child windows
    By face_master in forum Windows Programming
    Replies: 14
    Last Post: 03-01-2002, 07:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21