tags:

views:

31

answers:

1

Hi,

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

TIA.

+2  A: 

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

crimson13
Yeah it is working! Thanks crimson13 !
Nijenhuis