Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 5 - Control Manager / Control Manager Reference
Control Manager Routines / Removing Controls


KillControls

To remove all of the controls in a particular window that you want to keep, use the KillControls procedure.

PROCEDURE KillControls (theWindow: WindowPtr);
theWindow
A pointer to the window containing the controls to remove.
DESCRIPTION
The KillControls procedure disposes of all controls associated with the specified window by calling the DisposeControl procedure for each control.

SPECIAL CONSIDERATIONS
The Window Manager procedures CloseWindow and DisposeWindow automatically dispose of all controls associated with the given window.

SEE ALSO
The CloseWindow and DisposeWindow procedures are described in the chapter "Window Manager" in this book.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996