Mega Code Archive

 
Categories / Delphi / Examples
 

Taskbarhide

Here is some code for hiding the taskbar : <code> procedure TTaskbarForm.HideButtonClick(Sender: TObject); var wndHandle: Thandle; wndClass: array[0..50] of Char; begin StrPCopy(@wndClass, 'Shell_TrayWnd'); wndHandle := FindWindow(@wndClass[0], nil); ShowWindow(wndHandle, SW_HIDE); end; procedure TTaskbarForm.ShowButtonClick(Sender: TObject); var wndHandle: Thandle; wndClass: array[0..50] of Char; begin StrPCopy(@wndClass, 'Shell_TrayWnd'); wndHandle := FindWindow(@wndClass[0], nil); ShowWindow(wndHandle, SW_RESTORE); end; </code> and some code to 'not' show an application on the taskbar : <code> procedure TOnzichtbaarForm.FormCreate(Sender: TObject); begin SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW); end; </code> Regards, Hans -----Original Message----- From: Nick Kavalieris [mailto:_phantome@mail.ru] Sent: woensdag 22 november 2000 11:50 To: delphi@elists.org Subject: Hidding taskbar BUTTON ? Hi, How can I hide a BUTTON (not Icon) from task bar ? (My application's button) ------------------------ Kavalieris Nick, SV1ETK, KM08rm, _phantome@mail.ru UIN: #13199320 http://www.geocities.com/phantome_gr _______________________________________________ Delphi mailing list -> Delphi@elists.org http://elists.org/mailman/listinfo/delphi