Changing a view in a static splitter
Andrew Branch -- AndrewB@lpa.com Friday, February 09, 1996 Hi, Could anyone point me towards a reference on how to chane one of the views in a static splitter window. Thanks, Andrew Branch LPA Software abranch@lpa.com
Stevko Elemir -- STEVKO@dcse.fee.vutbr.cz Sunday, February 11, 1996 [Mini-digest: 3 responses] Hello, If you want to replace a view in the splitter window you can have a look at the SPLIT example. It can be downloaded from ftp.microsoft.com\softlib\mslfiles\SPLIT.EXE. The MSDN knowledge base article Q102827 (Replacing a View in a Splitter Window) deals with that example. Elemir Stevko stevko@dcse.fee.vutbr.cz -----From: mikeblas@interserv.com On Fri, 09 Feb 96, Andrew Branchwrote: >Could anyone point me towards a reference on how to chane one of the views >in a static splitter window. How do you want the change the view? Do you meant that the object now has a view instance of one class, and you'd like to use an instance of another class? .B ekiM -- TCHAR szDisc[] = _T("These words are my own; I do not speak for Microsoft."); -----From: Stephan.Jou@Cognos.COM (Jou, Stephan) Andrew: Look at the MFC sample program "SPLIT". It contains a function called "ReplaceView" which does exactly what you want. Here's an excerpt from the ABSTRACT.TXT: SPLIT: Demonstrates CSplitterWnd Functions SPLIT demonstrates several CSplitterWnd functions, including CWnd::CenterWindow. These functions perform the following tasks: > A ReplaceView function replaces one view in a CSplitterWnd pane with another. This function replaces a view, but uses the same CDocument object. Good luck, Stephan, Stephan.Jou@Cognos.COM, stephan@synapse.net
| Вернуться в корень Архива |