Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1 KB

exitinstance-member-function.md

File metadata and controls

17 lines (13 loc) · 1 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: ExitInstance Member Function
ExitInstance Member Function
11/04/2016
programs [MFC], terminating
CWinApp class [MFC], ExitInstance
ExitInstance method [MFC]
5bb597bd-8dab-4d49-8bcf-9c45aa8be4a2

ExitInstance Member Function

The ExitInstance member function of class CWinApp is called each time a copy of your application terminates, usually as a result of the user quitting the application.

Override ExitInstance if you need special cleanup processing, such as freeing graphics device interface (GDI) resources or deallocating memory used during program execution. Cleanup of standard items such as documents and views, however, is provided by the framework, with other overridable functions for doing special cleanup specific to those objects.

See also

CWinApp: The Application Class