Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips


#147: To show/hide clocks in tray

Today I want to publish a method for show/hide of clocks in traybar of MS Windows. This code will work with any version of Windows.

To hide clocks:
ShowWindow(FindWindowEx(FindWindowEx(FindWindow('Shell_TrayWnd', nil), 0, 'TrayNotifyWnd', nil), 0, 'TrayClockWClass', nil), SW_HIDE);

To show clocks:
ShowWindow(FindWindowEx(FindWindowEx(FindWindow('Shell_TrayWnd', nil), 0, 'TrayNotifyWnd', nil), 0, 'TrayClockWClass', nil), SW_SHOW);

Don't know why you need it but just for fun:-)


Published: November 11, 2002

See also
 
Clarion Viewer
Fast Document Viewer
Paradox ActiveX
Mail parser (ActiveX)
Database Information Manager
SMImport suite
Metafile Convert
Excel Reader (dll)
Paradox to MS Access converter
ABA Document Convert
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMExport advertising