Click to See Complete Forum and Search --> : My Dialog needs my doc pointer! Please help Mr. Expert!


Johnny DeMichael
May 27th, 1999, 06:25 PM
In my SDI app, I have instantiated mydialog from myview. Of course, I have pDoc from myview, but I wanted to insert items into a list control (from mydialog's constructor). The items (variables) are all in mydoc. How can I get a pointer to mydoc so I can access those variables. Thanks for any help!

Paul Burns
May 27th, 1999, 06:56 PM
easiest way is just to pass a pointer to the doc as an argument of your dialog constructor.

Johnny DeMichael
May 27th, 1999, 09:18 PM
Paul, thanks very much. That WAS simple.