ShowOwnedPopups

  BOOL ShowOwnedPopups(hwnd, fShow)    
  HWND hwnd; /* handle of window */
  BOOL fShow; /* window visibility flag */

This function shows or hides all pop-up windows that are associated with the hwnd parameter. If the fShow parameter is nonzero, all hidden pop-up windows are shown; if fShow is zero, all visible pop-up windows are hidden.

Parameters

hwnd

Identifies the window that owns the pop-up windows that are to be shown or hidden.

fShow

Specifies whether or not pop-up windows are hidden. It is TRUE if all hidden pop-up windows should be shown; it is FALSE if all visible pop-up windows should be hidden.

Return Value

Returns TRUE for success, FALSE for failure.

Comments

This function will only show windows that were hidden using this function. That is, if you open a popup window, then hide it by using ShowWindow, ShowOwnedPopups called with a TRUE flag won't cause the window to be shown.

See Also

ShowWindow