Important: The information in this document is obsolete and should not be used for new development.
FrontWindow
Use theFrontWindow
function to find out which window is active.
FUNCTION FrontWindow: WindowPtr;DESCRIPTION
TheFrontWindow
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
returnsNIL
.SEE ALSO
See Listing 4-9 on page 4-44 for an example that callsFrontWindow
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.