Quote Originally Posted by chrisvarnz View Post
Thanks again, VS2008 doesn't generate an OnInitDialog by default in my code, but originally I had a play with it trying to get my original problem to work. Am I to understand then that if I manually define MyDialog::OnInitDialog() and within that make a call to CDialog::OnInitDialog() (kind of like OnOK() makes a call to CDialog::OnOK() to run the non-overridden implementation), I can then within the same definition, change the selection of the combo box? Also assuming that OnInitDialog is run automatically on the call to DoModal.

To avoid asking too many questions in the future, can you point me the direction of some beginners/advanced reference material for MFC, as you clearly know your stuff :P. I've only been using it for a month but I'm getting there.

Thanks!
There should be some option in 2008 to add OnInitDialog into your class so you don't have to do it yourself. It will add the call to the base class version that actually creates the controls.

I'm not really up on all the latest books. Look for something that's written for VS2008 and MFC if that's what you're using.