[Top] [Prev] [Next] [Index]
Page 33 out of 116 total pages , Page 4 out of 10 pages in this chapter

Window Class Destructors

The VkSimpleWindow and VkWindow destructors delete all privately allocated data and destroy the views associated with the windows. The VkWindow destructor also destroys any menu bar associated with the window, no matter how you added it (see "Menu Bar Support" ). If you created a subclass, you should provide a destructor to free any space that you explicitly allocated in the derived class.

The VkSimpleWindow and VkWindow destructors also remove the window from the application's list of windows. If this window is the only window still associated with the application (for example, if it is the only window created or all other windows have also been deleted), then your application automatically calls VkApp::terminate() to quit itself. "Exiting ViewKit ObjectPak Applications" describes VkApp::terminate().



[Top] [Prev] [Next] [Index]
Page 33 out of 116 total pages , Page 4 out of 10 pages in this chapter

info@ics.com
Copyright © 1998, Integrated Computer Solutions, Inc. All rights reserved.