delphi 函数isiconic 函数 判断窗口是否最小化

http://blog.sina.com.cn/s/blog_66357ab901012t2h.html

delphi 函数isiconic 函数 判断窗口是否最小化

  (2012-05-26 22:00:21)
转载
标签: 

杂谈

 

The IsIconic function determines whether the specified window is minimized (iconic).

函数isiconic返回值取决于指定窗口是否已经最小化。

BOOL IsIconic(HWND hWnd  // handle of window);

Parameters

hWnd  窗口句柄 Identifies the window.

Return Values

If the window is iconic(最小化), the return value is nonzero.

最小化返回非零
If the window is not iconic, the return value is zero.

未最小化,返回0

 

//例子

if IsIconic(iHandle) then
ShowWindow(iHandle, SW_SHOWNORMAL)

else

begin
ShowMessage('程序已经运行!!');

BringWindowToTop(iHandle);
end;

转载于:https://www.cnblogs.com/delphi-xe5/p/5392605.html

你可能感兴趣的:(delphi 函数isiconic 函数 判断窗口是否最小化)