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
Viewer for TNEF-files (winmail.dat)
ABA Picture Convert
Paradox Viewer
DBISAM Password Recovery
Database Information Manager
MAPIMail
Clarion Viewer
Viewer for MS Outlook Messages
Excel Reader (dll)
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMExport advertising