Programming
Developed environment is Visual C++ Ver5.0.
Appended EXESRC.zip is source archive of TClock.exe, DLLSRC.zip is one of TCDLL.dll. Entire code is written by C. C++ is not used.
Overview of customizing clock is as follows:
- Call function inside TCDLL.dll from TClock.exe, then install "hook" inside TCDLL.dll.
- Subclassify clock window (class name "TrayClockWClass") in hook procedure.
- When customize "Start"button, subclassify Start button (class name"button") and Task button (class name"MSTaskSwWClass").
- When customize Start menu, subclassify Taskbar (class name"Shell_TrayWnd").
- Hack with each subclassified window procedure.
- Property sheet dialog and playing WAVE program is inside TClock.exe.
Copying or modifying source code, and including it into other program is permitted without any restriction.
In addition, please inform the author if you find some mistake in program.
- Recompile
-
Source files attached to TClock can be compiled by Microsoft Visual C++. Though specific class libraries is not used, it is unclear whether these can be compiled by other than Visual C++.
TClockE.mak is makefile for TClock.exe, and TCDLL.mak is one for TCDLL.dll.