Window Destruction Sequence

OverviewHow Do ITutorial

In the MFC framework, when the user closes the frame window, the window’s default handler calls . The last member function called when the Windows window is destroyed is , which does some cleanup, calls the member function to perform Windows cleanup, and lastly calls the virtual member function . The implementation of PostNcDestroy deletes the C++ window object.

What do you want to know more about?