I have created a new Dialog box with its base class, the CDialog.
I make it pop up using .DoModal().
My question is, how do I make it start doing things immediately after it's shown itself. I've tried starting methods from OnShow, but WM_SHOW happens just BEFORE the dialog is shown, not just after. See my problem?

Also - silly question really - what is the nicest way of making my dialog finish (without user intervention) and return control to the calling function where my DoModal() started it off from?

Thanks for any help,