Autor Beitrag
icedre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: Di 26.04.05 19:00 
Hallo,

ist es möglich mit Hilfe der ShellAPI die Größe (Höhe) der Taskbar von Windows zu verändern und die Funktion "Taskbar immer im Vordergrund halten" ein bzw. aus zuschalten ?

Bin für jede Hilfe dankbar. :)

_________________
Sprach Abraham zu Braham:
Kann ich deine Frau besamen
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 26.04.05 19:39 
Das hier könnte doch vielleicht schon helfen oder?

Zitat:
Feststellen, ob die Taskbar vorhanden ist

* WinNT: OK
* Win95: -
* Win98: -
* Win2k: -

Feststellen, ob sich die Taskleiste im Hintergrund befindet.

Entspricht der Einstellung 'Automatisch im Hintergrund' in 'Start\Einstellungen\Task-Leiste...'
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Function IsTaskbarHide:Boolean;
Var TB: TAppBarData;
Begin
  TB.cbSize := SizeOf(TB);
  Result := SHAppBarMessage(ABM_GETSTATE,TB) and (ABS_AUTOHIDE) > 0;
End;


Wird statt der Konstanten ABS_AUTOHIDE die Konstante ABS_ALWAYSONTOP benutzt, läßt sich feststellen, ob die Taskleiste immer im Vordergrund ist.
Entspricht der Einstellung 'Immer im Vordergrund' in 'Start\Einstellungen\Task-Leiste...'
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Function IsTaskbarOnTop:Boolean;
Var TB: TAppBarData;
Begin
  TB.cbSize := SizeOf(TB);
  Result := SHAppBarMessage(ABM_GETSTATE,TB) and (ABS_ALWAYSONTOP) > 0;
End;


Um die Shell-Routinen zu benutzen, muß die Unit ShellAPI in Uses stehen.

ausblenden Delphi-Quelltext
1:
Uses ShellAPI,...;					


//EDIT: Ooops. Hab das nicht gesehen:
Zitat:

* WinNT: OK
* Win95: -
* Win98: -
* Win2k: -
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: Di 26.04.05 19:48 
O.K.

Danke, ich werd´s versuchen..

Brauch es aber für Win XP

_________________
Sprach Abraham zu Braham:
Kann ich deine Frau besamen