首页 > Windows开发 > 详细

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

时间:2016-04-14 20:52:53      阅读:397      评论:0      收藏:0      [点我收藏+]

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;

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

原文:http://www.cnblogs.com/delphi-xe5/p/5392605.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!