Programming Microsoft Visual C++

At some point, you'll need a function to delete the contents of your document. You could write your own private member function, but it happens that the application framework declares a virtual DeleteContents function for the CDocument class. The application framework calls your overridden DeleteContents function when the document is closed and as you'll see in the next chapter, at other times as well.

Категории