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 4 - Window Manager / Window Manager Reference
Window Manager Routines / Displaying Windows


HideWindow

Use the HideWindow procedure to make a window invisible.

PROCEDURE HideWindow (theWindow: WindowPtr);
theWindow
A pointer to the window's window record.
DESCRIPTION
The HideWindow procedure make a visible window invisible. If you hide the frontmost window, HideWindow removes the highlighting, brings the window behind it to
the front, highlights the new frontmost window, and generates the appropriate
activate events.

To reverse the actions of HideWindow, you must call both ShowWindow, to make the window visible, and SelectWindow, to select it.

SEE ALSO
See Listing 4-16 on page 4-60 for an example that calls HideWindow to temporarily
hide a dialog box window when the user closes it. See Listing 4-18 on page 4-64 for the companion example that redisplays the window later.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996