OnInitDialog and doing something after the window is shown 
Author Message
 OnInitDialog and doing something after the window is shown

Hi,
I need to do something as soon as the OnInitDialog function is exited. i.e.
I need to call a function as soon as the dialog is initialized and shown on
the screen. Is there anyway to do so?

Cheers,
Mehdi
--
What you need to know about modems? take a look at
http://www.*-*-*.com/
The new revision will be soon available at http://www.*-*-*.com/



Tue, 25 Feb 2003 04:07:26 GMT  
 OnInitDialog and doing something after the window is shown
Mehdi:

I think the easist way to do this is with a one-shot timer with a short
time interval, like 100 milliseconds.

HTH,

David Wilkinson

===============

Quote:

> Hi,
> I need to do something as soon as the OnInitDialog function is exited. i.e.
> I need to call a function as soon as the dialog is initialized and shown on
> the screen. Is there anyway to do so?

> Cheers,
> Mehdi
> --
> What you need to know about modems? take a look at
> http://www.tabesh.com/ata/modem
> The new revision will be soon available at http://www.modemmania.com



Tue, 25 Feb 2003 04:49:58 GMT  
 OnInitDialog and doing something after the window is shown
Why not just call ShowWindow in OnInitDialog?
Quote:

> Hi,
> I need to do something as soon as the OnInitDialog function is exited. i.e.
> I need to call a function as soon as the dialog is initialized and shown on
> the screen. Is there anyway to do so?

> Cheers,
> Mehdi
> --
> What you need to know about modems? take a look at
> http://www.tabesh.com/ata/modem
> The new revision will be soon available at http://www.modemmania.com



Tue, 25 Feb 2003 04:56:56 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Window Classes: Am I doing this right?

2. Something like OnInitDialog

3. Threading problem. I'm doing something wrong

4. Doing something and still having the GUI go

5. doing something with an icon resource

6. can something like this be done...

7. Am I missing something?

8. Help compiling templated class -- Am I missing something?????

9. ComboBox - Am I MISSING something?

10. Sockets really slow, am i missing something ?

11. DAO - Am I missing something?

12. Am I missing something?

 

 
Powered by phpBB® Forum Software