Einzelnen Beitrag anzeigen

Billi Berserker
(Gast)

n/a Beiträge
 
#4

Re: Herausfinden ob ein Fenster einen Taskbareintrag hat

  Alt 14. Apr 2007, 22:08
Delphi-Quellcode:
  function EnumWindowsProc(Wnd: HWND; LParam: LPARAM): BOOL; stdcall;
  begin
    if (GetWindowLong(Wnd, GWL_STYLE) and WS_SYSMENU <> 0) and
       ((IsWindowVisible(Wnd) or IsIconic(wnd)) and
       ((GetWindowLong(Wnd, GWL_HWNDPARENT) = 0) or
       (GetWindowLong(Wnd, GWL_HWNDPARENT) = GetDesktopWindow)) and
       (GetWindowLong(Wnd, GWL_EXSTYLE) and WS_EX_TOOLWINDOW = 0)) then
    begin
      // fenster hat Taskbar Eintrag...
    end;
    result := True;
  end;
Das ganze sollte alle möglichkeiten erschlagen
  Mit Zitat antworten Zitat