SAMPLE: Replacing a View in a Splitter WindowLast reviewed: September 18, 1997Article ID: Q102827 |
The information in this article applies to:
SUMMARYThe SPLIT sample demonstrates the following Foundation Class programming concepts:
~ Split.exe (size: 35858 bytes)For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online ServicesNOTE: Use the -d option when running SPLIT.EXE to decompress the file to re-create the proper directory structure.
MORE INFORMATIONTo understand what the sample does, first execute the program. You will see a main application window with a splitter window (CSplitterWnd) in its client area. A selection dialog will be displayed in the first pane and a view will be displayed in the second pane. Click on the "View 1" and "View 2" buttons. Notice that the view in the second pane will switch from one to the other. The view is changing but looking at the source you'll see that the document stays the same. The sample project can be converted to a 32-bit Visual C++ 2.x project and will successfully compile and execute once the following change has been made: On line 34 of SPLITTER.CPP, change:
::SetWindowWord GWW_IDto:
::SetWindowLong GWL_IDIf you have comments or suggestions about how to improve this sample, please send Microsoft a message to the MFC section of the MSLANG forum.
|
Additional query words: split splitter sample
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |