Reputation: 109
How do I close (using code) the last created CView in my MDI app. from the CMainFrame class ?
Upvotes: 0
Views: 1140
Reputation: 3830
Call OnCloseDocument on the associated CDocument (which you can get by calling GetDocument on the CView instance).
Upvotes: 4