• 10
• 9
• 13
• 10
• 18

# MFC MDI question

This topic is 4875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I'm writing a map editor and already have the view structure set up, but I want all the data to be handled by the document structure. How do I pass the document data to the view so the map can be rendered as well as serialized through the document? My code so far: http://www.venosoft.com/uploads/njedit.zip I know it isn't much, but I don't want to get so deep that it's impossible to change.

##### Share on other sites
void CMyView::OnDraw(CDC* pDC){	CMyDoc* pDoc = GetDocument();	ASSERT_VALID(pDoc);}