Autor Beitrag
Jebaz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win NT 4, Win XP, Linux
Delphi 7.0
BeitragVerfasst: Mo 06.10.03 11:53 
Hallo zusammen, Ich hab mal so einen Themen-Titel hier gelesen...Aber nach langem suchen hab ich nun gaar nichts gefunden :-( Als ich das damals gefunden hatte interessierte es mich nicht...Jez währe es aber saumässig nützlich :?

Also gibt es irgendeine Prozedur, mit der man die Höhe (in Pixeln) der Taskleiste erhalten kann? Windows muss das ja irgendwo wissen...

Vielen Dank, und....IHR SEIT DIE BESTEN!! ;-)

_________________
...and You will Know us By the Trail of Death.....
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 06.10.03 12:14 
Hallo,

folgendermaßen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
uses
  ShellApi;


procedure TForm1.Button1Click(Sender: TObject);
var abd:TAppBarData;
begin
  abd.cbSize:=SizeOf(TAppBarData);
  if (SHAppBarMessage(ABM_GETTASKBARPOS, abd)<>0then
    Label1.Caption:='Höhe: '+IntToStr(abd.rc.Bottom-abd.rc.Top);
end;


Näheres dazu in der Win-API-Hilfe.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Jebaz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win NT 4, Win XP, Linux
Delphi 7.0
BeitragVerfasst: Mi 08.10.03 11:17 
Titel: Wow
Danke Vielmals, kam erst jetzt dazu dies auszuprobieren.

Funktioniert einwandfrei, wirklich toll ;)

_________________
...and You will Know us By the Trail of Death.....