Information générale
Catégorie:
Microsoft Foundation Classes
Titre:
MDI - Multiple Views
I'm trying to create an MDI app & display multiple views on a single text document. I'm using documents/views based on the CRichEdit classes, though I have tried other base classes, and have the same problem.
I have created a simple app. using the wizards. The only mod. I've made is in the Serialize member function, setting the m_bRTF flag to FALSE to read a plain text file.
I open a new document in a child window, that displays correctly. I then use the "New Window" option to create a second view in a second child window on the same document - the second window appears, but the document is not displayed.
I've checked through the debugger - the child window is associated with the correct class & the correct document, but the contents of the document are not displayed.
All of the documentation I can find seems to indicate that the default routine called when "New Window" is selected should create a new view & display the contents of the document.
Can anyone tell me what I'm missing to get the document to display in the second view/window.
(BTW, I'm using VC++ 6, with SP5 applied)
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement