redoctober
Programmer
Hi,
I've got question. I have a dialog box which i create as modeless using Create() function. And i have to change some parameters in the Doc object as soon as i click on button on the dialog, but i can find a way to get a hadle to the Doc object. Now i'm curious is there any graceful way to obtain a handle to my Doc or View object from inside of my dialog class? Right now i just rewrote constructor for the dialog class so that when i instantiate it i send a pointer to my Doc object and store it inside the dialog class. It works but i thought that it can be done in better way. Any thoughts on that?
Thanks.
I've got question. I have a dialog box which i create as modeless using Create() function. And i have to change some parameters in the Doc object as soon as i click on button on the dialog, but i can find a way to get a hadle to the Doc object. Now i'm curious is there any graceful way to obtain a handle to my Doc or View object from inside of my dialog class? Right now i just rewrote constructor for the dialog class so that when i instantiate it i send a pointer to my Doc object and store it inside the dialog class. It works but i thought that it can be done in better way. Any thoughts on that?
Thanks.