Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write a dialog to automatically start processing

Status
Not open for further replies.

datenis

Programmer
Jan 22, 2002
98
CA
Hi,

I'm not sure on where to place my processing code when a after a dialog box is drawn/activated. There is no need for user interaction (ie no OK/Cancel Buttons)

For example, I want the .exe to fire up some processing code and I have a dialog with a progress bar to indicate progress while the process is running.

now where should I place the processing code, I don't think it should be done on OnInitDialog

Suggestions?

-d
 
If you want to put some startup code for your dialog, you should put that in OnInitDialog. Else, you should put in class CWinApp::InitInstance, I believe you have there one class inherited from CWinApp

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top