Autor Beitrag
Kri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 118



BeitragVerfasst: Sa 12.01.08 13:51 
Hi,

ich wollte nur kurz fragen ob WorkAreaHeight - DesktopHeight = Höhe der Taskleiste ist?

Gruß
Kri
Jakob Schöttl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Sa 12.01.08 13:59 
ich bin mir grad nicht mehr sicher, ob DesktopHeight wirklich die höhe vom ganzen Bildschirm ist.

Wenn ja (du wirst es ja wissen), dann MUSS die Differenz NICHT die Höhe der Taskleiste sein, weil es auch noch andere Bars/Leisten... (also Programme) gibt, die die Workarea einschränken zB. X-Spy, ... oder auch von Windows zB. die Vergrößerungslupe unter Eingabehilfen
Kri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 118



BeitragVerfasst: Sa 12.01.08 14:21 
Ok dankeschön für die schnelle Antwort

Grüße
Kri
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: So 13.01.08 12:00 
Verwende doch die echte Taskbar-Höhenmess-Funktion:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
function GetTaskBarSize: TPoint;
var Handle: HWnd; Rect: TRect;
begin
  Handle := FindWindow('Shell_TrayWnd', nil);
  if Handle > 0 then
  begin
    GetWindowRect(Handle, Rect);
    Result.X := Rect.Right-Rect.Left;
    Result.Y := Rect.Bottom-Rect.Top;
  end;
end;

Entweder du nimmst das Rechteck, wie es ist, und hast die Ecken der Taskleiste, oder du nimmst die komplette Funktion, und hast Breite und Höhe in einem TPoint.