Hi
Could some one give me an example of how to make and call a function in my View class that I can call in a function in my MainFrame class?
Thanks
Printable View
Hi
Could some one give me an example of how to make and call a function in my View class that I can call in a function in my MainFrame class?
Thanks
Use GetActiveView() on any function on MainFrame to get a pointer to your view class:
CView* pView = GetActiveView();
And then use it to call view's functions:
((CMyView*)pView)->FunctionInViewClass();