Frage

Wie kann man wissen, ob eine Anwendung sichtbar in der Taskleiste ist?

Ich bin mit Delphi unter Windows.

War es hilfreich?

Lösung

Ich habe nicht versucht:

{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

Andere Tipps

Haben Sie spielen mit

Application.MainFormOnTaskbar := False;

und

Application.MainForm.Visible := False;
Application.ShowMainForm := False;
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top