乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      et Another Transparent Clock which Supports Custom Skin

       DavinTang 2011-02-18

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

      1.jpg

      2.jpg

      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 very easy. Moreover, there are several articles on The Code Project which explain 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

      Click here
      Jerry.Wang

      Architect
      Best Brain
      China China

      Member

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約