checking if document is closing
-
-
hi, i have code that gets pointers to all the open documents (CDocument objects) in the application. i was wondering how i can check if the document is currently closing when i get the pointer to it. any help would be appreciated, thank you. jay
Hi, There is no direct mechanism to do this. Create your own class which is derived from CDocument and override this method. virtual void OnCloseDocument( ); Thanks & Regards, Gopalakrishnan " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
hi, i have code that gets pointers to all the open documents (CDocument objects) in the application. i was wondering how i can check if the document is currently closing when i get the pointer to it. any help would be appreciated, thank you. jay