Scalabium Software

SMExport/SMImport suites
Knowledge for your independence'.
Home Delphi and C++Builder tips


#97: How can I hide/show the Start button from Windows TaskBar?

If you needs to hide/show the Start button from Windows Taskbar, you can use the next procedure:

procedure HideShowStartButton(boolVisible: Boolean);
var
  Tray, Child: hWnd;
  C: array[0..127] of Char;
  S: string;
begin
  Tray := FindWindow('Shell_TrayWnd', nil);
  Child := GetWindow(Tray, GW_CHILD);
  while Child <> 0 do
  begin
    if GetClassName(Child, C, SizeOf(C)) > 0 then
    begin
      S := StrPas(C);
      if UpperCase(S) = 'BUTTON' then
      begin
        startbutton_handle := child;
        ShowWindow(Child, Integer(boolVisible))
      end;
    end;
    Child := GetWindow(Child, GW_HWNDNEXT);
  end;
end;


Published: September 21, 2000

See also
 
Viewer for MS Outlook Messages
DBISAM Viewer
Metafile Convert
ABA Spreadsheet Convert
Excel Reader (dll)
Excel Web-stream
Paradox Viewer
DBLoad
Paradox to Text converter
Mail parser (ActiveX)
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2017, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport advertising