码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2016-04-14 20:55:40      阅读:313      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!