Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog windows -- where does the application code go Pin
Dave Sweetser16-Nov-03 16:35
Dave Sweetser16-Nov-03 16:35 
GeneralRe: Dialog windows -- where does the application code go Pin
Prakash Nadar16-Nov-03 16:58
Prakash Nadar16-Nov-03 16:58 
GeneralRe: Dialog windows -- where does the application code go Pin
Dave Sweetser16-Nov-03 17:18
Dave Sweetser16-Nov-03 17:18 
GeneralRe: Dialog windows -- where does the application code go Pin
Prakash Nadar16-Nov-03 17:30
Prakash Nadar16-Nov-03 17:30 
GeneralRe: Dialog windows -- where does the application code go Pin
PJ Arends16-Nov-03 19:06
professionalPJ Arends16-Nov-03 19:06 
GeneralRe: Dialog windows -- where does the application code go Pin
David Crow17-Nov-03 4:38
David Crow17-Nov-03 4:38 
GeneralRe: Dialog windows -- where does the application code go Pin
Mike Danberg17-Nov-03 10:20
Mike Danberg17-Nov-03 10:20 
GeneralRe: Dialog windows -- where does the application code go Pin
Mike Danberg17-Nov-03 11:43
Mike Danberg17-Nov-03 11:43 
General.NET issue Pin
kjessee16-Nov-03 15:32
kjessee16-Nov-03 15:32 
GeneralRe: .NET issue Pin
Christian Graus16-Nov-03 16:12
protectorChristian Graus16-Nov-03 16:12 
GeneralRe: .NET issue Pin
kjessee16-Nov-03 16:20
kjessee16-Nov-03 16:20 
GeneralRe: .NET issue Pin
Christian Graus16-Nov-03 16:28
protectorChristian Graus16-Nov-03 16:28 
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 
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 
Johnny is exactly right.

Windows (like any event driven GUI) requires your application to respond to events. Windows notifies your application when an event occurs by sending messages to its windows. Each message is identified by a WM_something constant. Examples of messages are:

  • WM_SIZE the user has just resized the dialog
  • WM_MOVE the user has moved the dialog
  • WM_QUERYENDSESSION Windows is shutting down and would like to terminate your application
  • WM_PAINT the user has moved a window, causing (part of) your window to need to be redrawn
MFC conveniently provides predefined methods (that you can override) to customize your response to these messages. The one you probably want to handle is the last one. The handler for this message is OnPaint().

My gut tells me you might be better off doing some reading before venturing into building your app. Once you get a better handle (pun intended) on MFC, you can decide where to inject your application's drawing code and perhaps add more bells and whistles to your app.

Good luck!

/ravi

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

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 

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.