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
 
Paradox to MS Access converter
Clarion Viewer
Viewer for TNEF-files (winmail.dat)
Clarion to Text converter
Paradox Viewer
ABA Database Convert
ABA Document Convert
DBLoad
Excel Web-stream
SMDBGrid
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMReport Autogenerated