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
 
SMReport
DBLoad
SMMsg suite
MAPIMail
Clarion Viewer
DBISAM Viewer
Protected Storage Viewer
SMExport suite
Metafile Convert
Viewer for TNEF-files (winmail.dat)
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMReport Autogenerated