Important: The information in this document is obsolete and should not be used for new development.
ShowWindow
Use theShowWindow
procedure to make an invisible window visible.
PROCEDURE ShowWindow (theWindow: WindowPtr);
- theWindow
- A pointer to the window record of the window.
DESCRIPTION
TheShowWindow
procedure makes an invisible window visible. If the specified window is already visible,ShowWindow
has no effect. Your application typically creates a new window in an invisible state, performs any necessary setup of the content region, and then callsShowWindow
to make the window visible.When you display a previously invisible window by calling
ShowWindow
, the Window Manager draws the window frame and then generates an update event to trigger your application's drawing of the content region.If the newly visible window is the frontmost window,
ShowWindow
highlights it if
it's not already highlighted and generates an activate event to make it active. TheShowWindow
procedure does not activate a window that is not frontmost on the desktop.
- Note
- Because
ShowWindow
does not change the front-to-back ordering of windows, it is not the inverse ofHideWindow
. If you make the frontmost window invisible withHideWindow
, andHideWindow
has activated another window, you must call bothShowWindow
andSelectWindow
to bring the original window back to the front.SEE ALSO
See Listing 4-16 on page 4-60 for an example that temporarily hides a dialog box
window when the user closes it. See Listing 4-18 on page 4-64 for the example that
callsShowWindow
to display the window again later.