Einzelnen Beitrag anzeigen

s14

Registriert seit: 15. Mai 2003
Ort: München
251 Beiträge
 
Delphi 7 Architect
 
#2

Re: eigenschaften der taskleiste aus programm heraus setzen

  Alt 15. Dez 2003, 09:45
Hallo Grumble,
vielleicht hilft Dir diese Funktion weiter:


Delphi-Quellcode:
procedure ShowTaskBar(Style: Word);
var HTaskbar : HWND;
begin
HTaskBar:=FindWindow('Shell_TrayWnd',nil);
//Now you have the window handle, you can use it to disable or hide the taskbar :
 case Style of
   0: EnableWindow(HTaskBar,False); //Disable the taskbar
   1: EnableWindow(HTaskBar,True); //Enable the taskbar
   2: ShowWindow(HTaskbar,SW_HIDE); //Hide the taskbar
   3: ShowWindow(HTaskbar,SW_SHOW); //Show the taskbar
 end;
end;
Gruß
  Mit Zitat antworten Zitat