Microsoft KB Archive/111017

= PRB: Multiple CEditViews on Document Don't Behave as Expected =

Article ID: 111017

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 1.0 Professional Edition

 Microsoft Visual C++ 1.5 Professional Edition

 Microsoft Visual C++ 1.51

 Microsoft Visual C++ 1.52 Professional Edition</li></ul>

 Microsoft Visual C++ 5.0 Learning Edition</li></ul>

 Microsoft Visual C++ 2.0 Professional Edition</li></ul>

 Microsoft Visual C++ 2.1</li></ul>

 Microsoft Visual C++ 4.0 Professional Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q111017

<div class="symptoms_section">

SYMPTOMS
If you write an application that uses multiple CEditView views for one document, you will find that changes to one view will not be reflected in the other views. This behavior will also be seen with splitter windows when the panes are CEditViews.

<div class="cause_section">

CAUSE
The CEditViews are effectively edit controls. This means that the text in a CEditView is stored in the view rather than the document object. Normally, when the document needs to serialize (load or save), it calls the CEditView's SerializeRaw member function.

<div class="resolution_section">

RESOLUTION
This is expected behavior and is not a problem in the Microsoft Foundation Class Library.

<div class="moreinformation_section">

MORE INFORMATION
For an application that makes use of the CEditView's SerializeRaw member function, please see the SuperPad example included in the Visual C++ MFC samples. The following are the default installation directories or distribution CD directories of the SuperPad sample: <pre class="fixed_text">   Visual C++ version  |         Directory --         1.0           |  \MSVC\MFC\SAMPLES\SUPERPAD 1.5x         |  \MSVC15\MFC\SAMPLES\SUPERPAD 2.x          |  \MSVC20\SAMPLES\MFC\SUPERPAD 4.0          |  \MSDEV\SAMPLES\MFC\OLE\SUPERPAD

Keywords: kbdocview kbprb KB111017

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.