CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    A funtion in View, called in Mainframe

    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


  2. #2
    Join Date
    May 1999
    Posts
    26

    Re: A funtion in View, called in Mainframe

    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();







Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured