Autor Beitrag
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: Fr 21.05.04 23:25 
Hi Leute!

Ich möchte ein Programm programmieren, dass sich als Icon im Tray befindet und bei einem klick ein Fenster ganz rechts unten auf dem Bildschrim (aber über der Taskleiste!!) anzeigt. Wie bekomme ich nun raus, wie hoch die Taskleiste ist (zur Laufzeit)?

Thx, Alstar
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Sa 22.05.04 01:35 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
function TaskHoehe: Integer;
var
  hWnd: Longint;
  rRect: TRect;
begin
  hWnd := FindWindow(PCHAR('Shell_TrayWnd'), '');
  if hWnd <> 0 then
  begin
    GetWindowRect(hWnd, rRect);
    TaskHoehe := rRect.Bottom - rRect.Top;
  end
    else TaskHoehe := -1{keine Taskleiste gefunden}
end;

_________________
Gruß
Martin
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 22.05.04 05:31