Accessing MFC MDI View Class data members from a different MFC MDI view class ?
I have data members i.e, int, CString etc. in my MFC MDI View class,
That I need to access from a different view class
e.g.
Code:
class CMFCApplication1View : public CView
{
Public:
CString myString;
int a;
etc...
...
};
I need to access the above variables from a different MDI view, etc...
e.g.
class CPropertiesWnd : public CDockablePane
{
...
};
This is a properties window, I know how to display variables.
But I do not know how to access these variables from a different class
I cant show the variables that change in the View because I don't know how to access them.
How do I do that ?
Please help,
Thank you.