欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
et Another Transparent Clock which Supports Custom Skin

Introduction

I 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/*.

Background

The 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 CXml classes which are provided here.

How to Add a New Skin

Each type of skin is placed under the /Theme/ directory.
To add a new skin, just create another sub-directory in /Theme/, which includes the image files and configuration file.

The image files are:

  • dial.png
  • hourNeedle.png
  • minuteNeedle.png
  • secondNeedle.png

And the configuration file  is setting.xml.

There is a sample for the setting.xml:

Collapse
<?xml version="1.0" encoding="UTF-8"?>
<skin>
<dial>
<filename>dial.png</filename>
<centerX>200</centerX>
<centerY>206</centerY>
</dial>

<hourNeedle>
<filename>hourNeedle.png</filename>
<centerX>14</centerX>
<centerY>176</centerY>
</hourNeedle>

<minuteNeedle>
<filename>minuteNeedle.png</filename>
<centerX>14</centerX>
<centerY>176</centerY>
</minuteNeedle>

<secondNeedle>
<filename>secondNeedle.png</filename>
<centerX>14</centerX>
<centerY>194</centerY>
</secondNeedle>
</skin>

The configuration file indicates the rotate center points of the dial and the needles.

Others

You 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 veryeasy. Moreover, there are several articles on The Code Project whichexplain the LAYERED window. I cannot do better.

History

  • 5th November, 2008: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Jerry.Wang

Architect
Best Brain
China


Member
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
一步一步學(xué)Silverlight 2系列(29):使用Transform實(shí)現更炫的效果(上)
Silverlight 矩陣變換MatrixTransform
少兒編程分享:手把手教你用Python編寫(xiě)兔獾大作戰(完)
iOS實(shí)現圓形頭像
基于C語(yǔ)言實(shí)現的貪吃蛇游戲完整實(shí)例代碼
如何判斷兩個(gè)矩形是否有重疊部分?(某公司校園招聘筆試試題)
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久