Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MDI - Multiple Views
Message
From
11/07/2003 15:19:45
 
 
To
All
General information
Forum:
Visual C++
Category:
Microsoft Foundation Classes
Title:
MDI - Multiple Views
Miscellaneous
Thread ID:
00809353
Message ID:
00809353
Views:
63
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
Map
View

Click here to load this message in the networking platform