CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    74

    Using splitter windows in SDI app

    I'm using SDI. Splitter window is working fine (2 panes left & right). I want to use 3 additional splitter windows (different views) each with a left & right pane, calling each with its button on the tool bar. Thus, I want to have 4 splitter windows, each with a left & right pane. I want the frame to view 1 of the 4 splitter windows based on the user pressing one of 4 buttons. Each splitter window will show some data that is contained within the same doc. Apparently, I should use SetActiveView()... I have placed the handler function in my CMainFrame class. Are there any articles or sample apps to guide me? Cannot get view (splitter) to change. Do I need to call OnClientClient & use a CASE statement? Would appreciate any suggestions.
    JD


  2. #2
    Join Date
    Apr 1999
    Location
    SungNam KyungKi Korea
    Posts
    14

    Re: Using splitter windows

    Remember!. Splitter Window is derived from CWnd
    You can get the Pointer other Splitter-Window, in this way

    -------------------------------
    | | |
    | | |
    |-----------------| |
    | CLeftBottomview | |
    | | |
    |-------------------------------








    CSplitterWnd* pWnd
    =(CSplitterWnd *)((CSplitterWnd *) GetParent())->GetPane(0,0);
    CLeftBottomView *pImageView;
    pImageView=(CLeftBottomView*)(pWnd->GetPane(1,0));
    pImageView->OnDraw();



    any other question?, send me mail

    by nfuox

  3. #3
    Join Date
    Apr 1999
    Posts
    74

    tchung, thanks . . . BUT

    I probably didn't explain very well. I don't need any additional panes. I want to have 4 splitter windows, each with a left & right pane. I want the frame to view 1 of the 4 splitter windows based on the user pressing one of 4 buttons. Each splitter window will show some data that is contained within the same doc. Thanks for any help you can give.


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