IntroductionI created this tiny clock program, which supports custom skins, for my brother. Anyone who wants to add a new skin can create a skin directory in /Theme/*. ![]() BackgroundThe code is written based upon Windows layered window and GDI+. In the source code, you will find the GDIPluszH.h file which is provided here and also the How to Add a New SkinEach type of skin is placed under the /Theme/ directory. The image files are:
And the configuration file is setting.xml. There is a sample for the setting.xml: ![]() <?xml version="1.0" encoding="UTF-8"?>
The configuration file indicates the rotate center points of the dial and the needles. OthersYou can download the source code from the link at the top of this article. There is no need to explain more about the code because it is very easy. Moreover, there are several articles on The Code Project which explain the LAYERED window. I cannot do better. History
LicenseThis article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) About the AuthorJerry.Wang![]() Best Brain ![]() Member |
|