1

如何知道应用程序是否在任务栏上可见?

我在 Windows 上使用 Delphi。

4

2 回答 2

3

我没有尝试:

{Wnd = your app. handle}

    if IsWindowVisible(Wnd) 
       and
       ( (GetWindowLong(Wnd, GWL_HWNDPARENT) = 0) or (HWND(GetWindowLong(Wnd, GWL_HWNDPARENT)) = GetDesktopWindow) ) 
       and
       ((GetWindowLong(Wnd, GWL_EXSTYLE) and WS_EX_TOOLWINDOW) = 0)
    then 
      // your application is visible on taskbar
于 2009-12-08T07:44:26.377 回答
0

你玩过吗

Application.MainFormOnTaskbar := False;

Application.MainForm.Visible := False;
Application.ShowMainForm := False;
于 2009-12-07T22:03:54.677 回答