dialogs vs windows

This is a discussion on dialogs vs windows within the Windows Programming forums, part of the Platform Specific Boards category; i would like to know what the point of windows if you can just use dialogs. With VC++ you can ...

  1. #1
    Registered User cppdude's Avatar
    Join Date
    Jan 2002
    Posts
    62

    dialogs vs windows

    i would like to know what the point of windows if you can just use dialogs. With VC++ you can quickly graphically design dialogs. With windows you have to hand code them, define window classes, extra windows messages to consider etc. So what is the point of windows?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Dialogs are windows. When you create a dialog box using fns like DialogBox etc they ultimately call CreateWindow/CreateWindowEx to make the dialog window. The system simply provides default, predefined behaviour etc but the dialogs are cut-down windows. They are perfect for little 'dialogues' to solicit extra user-info or where you just have controls but I would be reluctant to use one as a starting point for a full-blown application.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    Try maximising a dialog, for say a print preview.

    Dialogs, AFAIK, do not get an icon / shortcut thingy on the Task bar (I can't think of the right name at the moment).

    No multiple document interface (MDI) in dialogs.

    Each has its uses and abuses.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>No multiple document interface (MDI) in dialogs.<<

    Cheers, Novacain - I don't play 'mdi' so I wasn't sure about that. Thanks for clarifying.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  3. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  4. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

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