[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  ShowWindow( hWnd, nMode )-> <lSuccess>
------------------------------------------------------------------------------


 PARAMETER:

  <hWnd>        Is the handle that identifies the window

  <nMode>       Specifies how the window is to be shown. This parameter
                can be one of the following values:

                SW_HIDE            Hides the window and passes activation
                ( 0 )              to another window.

                SW_MINIMIZE        Minimizes the specified window and 
                ( 6 )              activates the top-level window in the
                                   system's list.

                SW_RESTORE         Activates and displays a window. If the
                ( 9 )              window is minimized or maximized, 
                                   Windows restores it to its original size
                                   and position (same as SW_SHOWNORMAL)

                SW_SHOW            Activates a window and displays it in
                ( 6 )              its current size and position.

                SW_SHOWMAXIMIZED   Activates a window and displays it as
                ( 3 )              a maximized window.

                SW_SHOWMINIMIZED   Activates a window and displays it as 
                ( 2 )              an icon.

                SW_SHOWMINNOACTIVE Displays a window as an icon. The 
                ( 7 )              window that is currently active remains
                                   active.

                SW_SHOWNA          Displays a window in its current state.
                ( 8 )              The window that is currently active 
                                   remains active.

                SW_SHOWNOACTIVATE  Displays a window in its most recent
                ( 4 )              size and position. The window that is
                                   currently active remains active.

                SW_SHOWNORMAL      Activates and displays a window. If the
                ( 1 )              window is minimized or maximized, 
                                   Windows restores it to its original size 
                                   and position (same as SW_RESTORE)


 RETURNS:

 <lSuccess> is TRUE if the operation was performed successfully



 DESCRIPTION:

  ShowWindow() sets the given window's visibility state.


 SOURCE:

  SOURCE\WINAPI\WNDSHOW.C



See Also: IsWindowVisible
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson