Delphi Tips
From The Cobb Group
Translator:傅貴
97.09.22:假如隱藏和顯示Windows的任務條?(Delphi 3 and 2.0)
假如隱藏和顯示Windows的任務條?僅僅調用以下的函數就可以.
procedure hideTaskbar; //隱藏
var
wndHandle : THandle;
wndClass : array[0..50] of Char;
begin
StrPCopy(@wndClass[0], Shell_TrayWnd);
wndHandle := FindWindow(@wndClass[0], nil);
ShowWindow(wndHandle, SW_HIDE);
End;
procedure showTaskbar;
var
wndHandle : THandle;
wndClass : array[0..50] of Char;
begin
StrPCopy(@wndClass[0], Shell_TrayWnd);
wndHandle := FindWindow(@wndClass[0], nil);
ShowWindow(wndHandle, SW_RESTORE);
end;