General information
Category:
Microsoft Foundation Classes
Title:
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)
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only