Board index » Visual Studio » Main Screen: Dialog or Frame?

Main Screen: Dialog or Frame?

Visual Studio329
I wonder if someone more experience with MFC than me could help me out

with a design issue.



We're creating a UI app for a controller running WinCE w/ MFC. It's

mainly a dialog app. When the app loads there is a main screen that

shows current status and has a few buttons to get to different areas

(which area dialogs) of the program.



We've had some internal discussion as to whether to make this main

screen another dialog, or a frame. What are the advantages of either

one? Should the main screen be a frame? Or should it be a dialog like

the other screens, except that it never goes away?



Any ideas or suggestions would be greatly appreciated.



TIA,

Dan McCarty


-
 

Re:Main Screen: Dialog or Frame?

I found that I use the two criteria:



1. If I don't need a toolbar or menu I typically make it a dialog app.

2. If I need a toolbar, menu I make it a doc/view app.



You could accomplish what you are mentioning here with a toolbar or dialog

bar and perhaps a CFormView as the main screen (like a dialog). You could

also pop up a single modeless dialog to control the setup and show your

status in a regular frame window. That way you could have menu or toolbar

items when you eventually want to save, print, or do other things with the

data.



My two pesos...



Tom



"Dan McCarty" <dmccarty@gmail.com>wrote in message

Quote
I wonder if someone more experience with MFC than me could help me out

with a design issue.



We're creating a UI app for a controller running WinCE w/ MFC. It's

mainly a dialog app. When the app loads there is a main screen that

shows current status and has a few buttons to get to different areas

(which area dialogs) of the program.



We've had some internal discussion as to whether to make this main

screen another dialog, or a frame. What are the advantages of either

one? Should the main screen be a frame? Or should it be a dialog like

the other screens, except that it never goes away?



Any ideas or suggestions would be greatly appreciated.



TIA,

Dan McCarty







-