Important: The information in this document is obsolete and should not be used for new development.
FrontWindow
Use theFrontWindowfunction to find out which window is active.
FUNCTION FrontWindow: WindowPtr;DESCRIPTION
TheFrontWindowfunction returns a pointer to the first visible window in the
window list (that is, the active window). If there are no visible windows,FrontWindowreturnsNIL.SEE ALSO
See Listing 4-9 on page 4-44 for an example that callsFrontWindowto determine whether an event occurred in the active window.See Listing 4-12 on page 4-55 for an example that calls
FrontWindowto 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
FrontWindowto determine which window is affected by a user command directed
at the active window.