This topic has not yet been rated - Rate this topic

COleControlSite::ShowWindow

Sets the window's show state.

virtual BOOL ShowWindow(
   int nCmdShow 
);
nCmdShow

Specifies how the control site is to be shown. It must be one of the following values:

  • SW_HIDE   Hides this window and passes activation to another window.

  • SW_MINIMIZE   Minimizes the window and activates the top-level window in the system's list.

  • SW_RESTORE   Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position.

  • SW_SHOW   Activates the window and displays it in its current size and position.

  • SW_SHOWMAXIMIZED   Activates the window and displays it as a maximized window.

  • SW_SHOWMINIMIZED   Activates the window and displays it as an icon.

  • SW_SHOWMINNOACTIVE   Displays the window as an icon. The window that is currently active remains active.

  • SW_SHOWNA   Displays the window in its current state. The window that is currently active remains active.

  • SW_SHOWNOACTIVATE   Displays the window in its most recent size and position. The window that is currently active remains active.

  • SW_SHOWNORMAL   Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position.

Nonzero if the window was previously visible; 0 if the window was previously hidden.

Header: afxocc.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ