CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2000
    Location
    Washington (state)
    Posts
    125

    Which Message Handler???

    In my MDI application I have a certain function that needs to be called whenever a document is opened AND whenever the user switches from one already opened document window to a different already opened document window. Is there a single message handler that will cover both opening a document and switching doc windows???

    If not, OnOpenDocument should cover the open doc case, what would be the handler that would cover the switching windows case???

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Which Message Handler???

    Try WM_ACTIVATE for the view class.

  3. #3
    Join Date
    Apr 2000
    Location
    Washington (state)
    Posts
    125

    Re: Which Message Handler???

    Perfect! Thanks GCDEF!!!

    I am using CView::OnActivateView

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