Click to See Complete Forum and Search --> : Using splitter windows in SDI app
Johnny DeMichael
April 25th, 1999, 11:45 PM
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
tchung
April 26th, 1999, 12:14 AM
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
Johnny DeMichael
April 26th, 1999, 01:27 PM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.