The ShowOwnedPopups function shows or hides all pop-up windows owned by the specified window.
Syntax
BOOL ShowOwnedPopups(
HWND hWnd, BOOL fShow );
Parameters
hWnd
- [in] Handle to the window that owns the pop-up windows to be shown or hidden.
fShow- [in] Specifies whether pop-up windows are to be shown or hidden. If this parameter is TRUE, all hidden pop-up windows are shown. If this parameter is FALSE, all visible pop-up windows are hidden.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
ShowOwnedPopups shows only windows hidden by a previous call to ShowOwnedPopups. For example, if a pop-up window is hidden by using the ShowWindow function, subsequently calling ShowOwnedPopups with the fShow parameter set to TRUE does not cause the window to be shown.
本文详细介绍了Windows API中的ShowOwnedPopups函数,该函数用于显示或隐藏指定窗口拥有的所有弹出窗口。文章解释了函数的语法、参数含义及返回值,并提供了使用注意事项。
13万+

被折叠的 条评论
为什么被折叠?



