Link to home
Start Free TrialLog in
Avatar of sinaie
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
Avatar of danelroisman
danelroisman

Eyal!

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



 
Avatar of sinaie

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
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial