CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Getting a pointer to other window

    Using VC 6 I have created an MDI explorer type of application. I have placed a few items in the left pane(the CTreeView and have defined the OnClick(NMHDR* pNMHDR, LRESULT* pResult) function

    I want to be able to update the right hand pane everytime I make a selection to an item in the left pane, but how do I get a pointer to the right pane window, etc.?

    Thanks

    Jim Bassett


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Getting a pointer to other window

    You can call the UpdateAllViews method of CDocument.


  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Getting a pointer to other window

    CWnd* pWnd = GetPane(1, 0);



    this will return pointer to second pane. See help for more.


    John Cz
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

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