Important: The information in this document is obsolete and should not be used for new development.
ShowWindow
Use theShowWindowprocedure to make an invisible window visible.
PROCEDURE ShowWindow (theWindow: WindowPtr);
- theWindow
- A pointer to the window record of the window.
DESCRIPTION
TheShowWindowprocedure makes an invisible window visible. If the specified window is already visible,ShowWindowhas no effect. Your application typically creates a new window in an invisible state, performs any necessary setup of the content region, and then callsShowWindowto 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,
ShowWindowhighlights it if
it's not already highlighted and generates an activate event to make it active. TheShowWindowprocedure does not activate a window that is not frontmost on the desktop.
- Note
- Because
ShowWindowdoes not change the front-to-back ordering of windows, it is not the inverse ofHideWindow. If you make the frontmost window invisible withHideWindow, andHideWindowhas activated another window, you must call bothShowWindowandSelectWindowto 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
callsShowWindowto display the window again later.