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!

Execution on Startup

Status
Not open for further replies.

evilpeer

Programmer
Sep 24, 2001
16
US
I have a dialog-based program that I want to execute a function on startup, after the window is drawn (so that the user knows the program is running).

Unfortunately, there are only two places I can figure to make the call. The first is in OnInitDialog, which unfortunately is before the window is drawn. The second is at the end of OnDraw, but let's just say that's less than optimal (yes, I'd like to wait 3 minutes for the window to move).

Most of the rest of the messages I could map don't seem appropriate (or useful for that matter), so I'm at a complete loss. Anyone got a suggestion?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top