CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    NH, USA
    Posts
    47

    Setting focus on a pane in a splitter window

    I have an SDI app that has two panes, each with its own framewnd and view. One of the panes is a tree view. The problem I'm having is that I can't seem to programmatically select the other pane when I double-click on a tree item. That is, I want to have the same effect as if the user clicks on the other pane. I have tried calling the other pane's SetFocus and/or SetActiveWindow, but neither works.

    Any help or advice would be greatly appreciated.


  2. #2
    Join Date
    May 1999
    Posts
    10

    Re: Setting focus on a pane in a splitter window

    I think you needn't set focus in the other pane, you can use the pointer of the other pane to do what u want to do.

    (CMyPane*) pMyPane = (CMyPane*)m_SplitterWnd.GetPane(row,col);
    pMyPane->.....




    the beautiful story made me cry.

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