Http://blog.sina.com.cn/s/blog_66357ab901012t2h.htmldelphi function Isiconic function to determine if the window is minimized(2012-05-26 22:00:21)
reproduced
The Isiconic function determines whether the specified window is minimized (iconic).
The return value of the function Isiconic depends on whether the specified window has been minimized.
BOOL Isiconic (HWND hwnd//handle of window);
Parameters
HWnd window handle identifies the windows.
Return Values
If the window is iconic (minimized), the return value is nonzero.
Minimize return Nonzero
If The window is not a iconic, the return value is zero.
Not minimized, returns 0
Example
If Isiconic (Ihandle) Then
ShowWindow (Ihandle, SW_SHOWNORMAL)
Else
Begin
ShowMessage (' program has run! ');
BringWindowToTop (Ihandle);
End
isiconic function of Delphi function to determine whether a window is minimized