Click to See Complete Forum and Search --> : A funtion in View, called in Mainframe


April 22nd, 1999, 02:18 AM
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

Sergio Acosta
June 3rd, 1999, 12:40 AM
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();