what to do with the main window

This is a discussion on what to do with the main window within the Windows Programming forums, part of the Platform Specific Boards category; here's how the design is going as of now: the main window is simply a bitmap (just a little "intro") ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    157

    what to do with the main window

    here's how the design is going as of now: the main window is simply a bitmap (just a little "intro") and a button ("Continue..."). and when you start up the program, it of course calls the main window. so once youre ready to work with my app, you hit "Continue..." and then that should bring up a dialog with options to work with the app.

    my question isn't directly a coding question, but more of a logical question of what you think i should do. when the user hits "Continue..." then i want this options dialog to appear and the main window to "disappear". but, i cant destroy the main window because then it'll PostQuitMessage(0) and terminate the program.

    so how should i go about doing this that when the user continues, the main window seemingly "goes away"? is there a way to hide this window somehow? i might be dreaming this up, but i think i do remember a function called HideWindow(). and then when the dialog is destroyed it'll just destory that hidden main window therefore terminating the app. but is this best?

    suggestions and advice are needed. thanks!

  2. #2
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    Code:
    ShowWindow(hWnd, SW_HIDE);

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    157
    okay, i think i'll do it that way. thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 07:57 PM
  2. Connecting Dialog window to main window
    By vopo in forum Windows Programming
    Replies: 1
    Last Post: 11-26-2007, 07:55 PM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  4. confused about adding controls to main window
    By terracota in forum Windows Programming
    Replies: 4
    Last Post: 11-24-2004, 12:35 PM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 05:08 PM

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