sinaie
asked on
getting var from document in vc++
Hi,
I am creating my data in a document, from the view object I'm using getDocument() to get data from the document.
How can I get the data from OnInitDialog()?
I need the data so I can change the initial state of the dialog.
Thanks
Eyal
I am creating my data in a document, from the view object I'm using getDocument() to get data from the document.
How can I get the data from OnInitDialog()?
I need the data so I can change the initial state of the dialog.
Thanks
Eyal
ASKER
Thanks,
But I need to get data from the document while activating OnInitDialog().
This data will define exactly how the dialog will apear.
The dialog is a modal one and I activate it from the mainApp.
Thanks again
Eyal
But I need to get data from the document while activating OnInitDialog().
This data will define exactly how the dialog will apear.
The dialog is a modal one and I activate it from the mainApp.
Thanks again
Eyal
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
GetDocument() allow you get pointer to document to get data from it.
But OnInitDialog() is a message function of CDialog, how you can get data from it ?!
But you can send user-defined message
from the body of OnInitDialg(),so when you dialog will be active you can get this message with parameters you send.
Good Luck!
Daniel