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 に答える