|
-
May 4th, 2009, 09:51 PM
#1
Running a function *after* OnInitDialog() has completed
I have an MFC Dialog project in VS2005, and I would like to run a Function after OnInitDialog has finished.
Does MFC have a message or feature available that lets you run a function directly after OnInitDialog()? For example AfterInitDialog() 
At the moment I am using SetTimer/OnTimer with a static bool variable to run a function shortly after OnInitDialog() just once, then ignore all the following OnTimer calls. It works, but I was just wandering if there is a 'cleaner' solution.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|