I've a document class which has an object which is a connection to a database. The document class has a dialog box which is spawned from a menu, which contains a combo box. I'm currently using OnInitDialog to set the items in the combo box but want to use the database connection.
What is the best way of supplying the database connection object to the Dialog box object? I don't think I can pass it in as an argument, and if I supply it after construction, I might have missed the call to the OnInitDialog. Is there a way of finding the parent object and calling a getMethod to obtain the database object or am I on the wrong track altogether and should be attempting something completely different?
Thanks for your help, James