Thread: dialogs are easier, but what about the main window?

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

    dialogs are easier, but what about the main window?

    you know how you have to have a main window when you start up the program, but i think that controls and just eveyrthing about dialogs is just easier. how should i go about avoiding the main window and using just dialogs? in which i think i would need the main window, but what to do with it?

    thanks.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Here you go. I attached a simple project I just wrote demonstrating the fact that you don't need a main window in order to have a dialog box. Hope this helps you.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    157
    thanks for that example, wizard. is this is what is recommended to do and in good practice? or should i somehow find a way to implement the main window one way or another? or do you mainly do what you did in the example you provided me with?

    thanks.

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    There isn't anything wrong with my example. In the rare cases I write something that doesn't need a main window that is what I do. Only thing I usually use that for would be to make setup configurations for games.

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    157
    okay, i see now. 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, 06:57 PM
  2. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  3. Buttons + Edit Control
    By jay kay in forum Windows Programming
    Replies: 6
    Last Post: 03-09-2005, 05:36 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, 04:08 PM