質問

アプリケーションがタスクバーに表示されているかどうかを知るには?

私はWindows上でのDelphiを使用しています。

役に立ちましたか?

解決

私がしようとしなかった。

{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

他のヒント

あなたが一緒にプレイしました。

Application.MainFormOnTaskbar := False;

Application.MainForm.Visible := False;
Application.ShowMainForm := False;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top