Click here to Skip to main content
15,906,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: .NET issue Pin
Prakash Nadar16-Nov-03 17:24
Prakash Nadar16-Nov-03 17:24 
GeneralRe: .NET issue Pin
kjessee16-Nov-03 21:55
kjessee16-Nov-03 21:55 
Questionwhere's main() ??? Pin
Dave Sweetser16-Nov-03 14:10
Dave Sweetser16-Nov-03 14:10 
AnswerRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 14:22
professionalRavi Bhavnani16-Nov-03 14:22 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 14:34
Dave Sweetser16-Nov-03 14:34 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:00
professionalRavi Bhavnani16-Nov-03 15:00 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:22
Dave Sweetser16-Nov-03 15:22 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:37
professionalRavi Bhavnani16-Nov-03 15:37 
A Windows app that exposes a user interface requires a main window, and optionally various child windows depending on the type of interface (dialog, SD, MDI, etc.).

For your purpose, it seems that a dialog based app will suffice. The graphics will be displayed within the dialog box. When you run AppWizard (to create an MFC Windows Application), select "Dialog Based" at the appropriate step.

When you build and run your app, a "main dialog window" will be displayed. If you click Esc (or the little x a the top right corner), the dialog will exit, control will eventually return to your CWinApp derived class, and your app will exit.

The actual displaying of graphics will likely occur within a custom control (chart, graph, whatever) you may choose to implement. This control will reside within the dialog. You can create a timer to update the control every "n" units of time. You may also want to add buttons and other widgets on the dialog to allow the user to control the app.

Hope this sheds some more light on "the big picture".

/ravi

Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:57
Dave Sweetser16-Nov-03 15:57 
GeneralRe: where's main() ??? Pin
Johnny ²16-Nov-03 21:43
Johnny ²16-Nov-03 21:43 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani17-Nov-03 3:43
professionalRavi Bhavnani17-Nov-03 3:43 
GeneralI need some help please Pin
Anonymous16-Nov-03 13:18
Anonymous16-Nov-03 13:18 
GeneralRe: I need some help please Pin
Christian Graus16-Nov-03 16:16
protectorChristian Graus16-Nov-03 16:16 
GeneralGetting the system date Pin
kerplatz16-Nov-03 11:56
kerplatz16-Nov-03 11:56 
GeneralRe: Getting the system date Pin
Michael Dunn16-Nov-03 12:38
sitebuilderMichael Dunn16-Nov-03 12:38 
GeneralRe: Getting the system date Pin
kerplatz16-Nov-03 13:10
kerplatz16-Nov-03 13:10 
GeneralRe: Getting the system date Pin
Steve S17-Nov-03 2:05
Steve S17-Nov-03 2:05 
QuestionHow to move a CToolBar? Pin
Florin Ochiana16-Nov-03 11:32
Florin Ochiana16-Nov-03 11:32 
QuestionHow to show (restore) my window when MessageBox dialog is not closed? Pin
julych16-Nov-03 10:38
julych16-Nov-03 10:38 
AnswerRe: How to show (restore) my window when MessageBox dialog is not closed? Pin
Uma Mahes16-Nov-03 17:39
Uma Mahes16-Nov-03 17:39 
GeneralToggle views :: In_SplitterWnd Pin
gaesabal16-Nov-03 8:23
gaesabal16-Nov-03 8:23 
GeneralRe: Toggle views :: In_SplitterWnd Pin
Ivor S. Sargoytchev16-Nov-03 16:43
Ivor S. Sargoytchev16-Nov-03 16:43 
GeneralRestricting programs to parts of the screen Pin
Anonymous16-Nov-03 4:59
Anonymous16-Nov-03 4:59 
GeneralRe: Restricting programs to parts of the screen Pin
Michael Dunn16-Nov-03 5:23
sitebuilderMichael Dunn16-Nov-03 5:23 
Generalhelp wanted, pdf file split operation Pin
NotProfessional15-Nov-03 20:19
NotProfessional15-Nov-03 20:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.