Scalabium Software

SMReport Autogenerated
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
 
DBISAM Viewer
Metafile Convert
Clarion Viewer
SMImport suite
Excel Web-stream
Viewer for MS Outlook Messages
Clarion to Text converter
Viewer for TNEF-files (winmail.dat)
DBISAM Password Recovery
MAPIMail
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMExport advertising