Nijenhuis
Nijenhuis

Reputation: 109

Howto close a MDI CView from CMainFrame

How do I close (using code) the last created CView in my MDI app. from the CMainFrame class ?

Upvotes: 0

Views: 1140

Answers (1)

Randy Voet
Randy Voet

Reputation: 3830

Call OnCloseDocument on the associated CDocument (which you can get by calling GetDocument on the CView instance).

Upvotes: 4

Related Questions