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 / Retrieving Window Information


FrontWindow

Use the FrontWindow function to find out which window is active.

FUNCTION FrontWindow: WindowPtr;
DESCRIPTION
The FrontWindow function returns a pointer to the first visible window in the
window list (that is, the active window). If there are no visible windows, FrontWindow returns NIL.

SEE ALSO
See Listing 4-9 on page 4-44 for an example that calls FrontWindow to determine whether an event occurred in the active window.

See Listing 4-12 on page 4-55 for an example that calls FrontWindow to determine whether to display a window in front of other windows after changing its size.

See Listing 4-16 on page 4-60 and Listing 4-17 on page 4-61 for examples that call FrontWindow to determine which window is affected by a user command directed
at the active window.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996