青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

天行健 君子當自強而不息

Using Windows XP Visual Styles

Using Microsoft Windows XP, you can now define the visual style or appearance of controls and windows from simple colors to textures and shapes. You can control each defined part of a control as well as each part of the nonclient (frame and caption) area of a window. The user can then use the Appearance tab in the Windows Control Panel to switch between the classic visual style and other available styles.

A visual style is included with the Windows XP release. Using helper libraries and application programming interfaces (APIs), you can incorporate the Windows XP visual style into your application with few code changes. For information about the differences between themes and visual styles, see Themes and Visual Styles.


 

ComCtl32.dll Version 6

All applications running on the Windows XP operating system have a nonclient area, which includes the window frame and nonclient scroll bars. A visual style is applied to the nonclient area by default. This means that the appearance of the nonclient area is specified by the visual style that is currently installed. To apply a visual style to common controls in the client area, you must use ComCtl32.dll version 6 or later. Unlike earlier versions of ComCtl32.dll, version 6 is not redistributable. The only way you can use version 6 of the dynamic-link library (DLL) is to use an operating system that contains it. Windows XP ships with both version 5 and version 6. ComCtl32.dll version 6 contains both the user controls and the common controls. By default, applications use the user controls defined in User32.dll and the common controls defined in ComCtl32.dll version 5.

If you want your application to use visual styles, you must add an application manifest that indicates that ComCtl32.dll version 6 should be used if it is available. Version 6 includes some new controls and new options for other controls, but the biggest change is support for changing the appearance of controls in a window.

Using Manifests to Ensure That Visual Styles Can Be Applied to Applications

As previously discussed, you must use ComCtl32.dll version 6 to apply visual styles to your applications and use an application manifest to ensure that version 6 is available to your application. An application manifest describes an application and specifies the components required to run the application, such as any dependencies.

You must use Extensible Markup Language (XML) to write a manifest. The name of the application manifest file is the name of your executable followed by the file extension .manifest. For example, MyApp.exe.manifest. The following sample manifest shows that the first section describes the manifest itself. The following table shows the attributes set by the assemblyIdentity element in the manifest description section.


 

Attribute Description
version Version of the manifest. The version must be in the form major.minor.revision.build (that is, n.n.n.n, where n <=65535).
processorArchitecture Processor for which your application is developed.
name Includes company name, product name and application name.
type Type of your application, such as Microsoft Win32.


 

The sample manifest also provides a description of your application and specifies application dependencies. The following table shows the attributes set by the assemblyIdentity element in the dependency section.


 

Attribute Description
type Type of the dependency component, such as Win32.
name Name of the component.
version Version of the component.
processorArchitecture Processor that the component is designed for.
publicKeyToken Key token used with this component.
language Language of the component.

Following is an example of a manifest file.

Important  If you write an application for the 64 bit Windows platform, you must change the processorArchitecture entry to processorArchitecture="IA64".
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.YourApplication"
type="win32"
/>
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

The following topics describe the steps for applying visual styles to different types of applications. Notice that the manifest format is the same in each case.

Using ComCtl32.dll Version 6 in an Application That Does Not Use Third Party Extensions

The following are examples of applications that do not use third party extensions.

  • Calculator
  • FreeCell
  • Minesweeper
  • Notepad
  • Solitaire

To create a manifest and enable your application to use visual styles.

  1. Link to ComCtl32.lib and call InitCommonControls.
  2. Add a file called YourApp.exe.manifest to your source tree that has the XML manifest format.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="CompanyName.ProductName.YourApplication"
    type="win32"
    />
    <description>Your application description here.</description>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity
    type="win32"
    name="Microsoft.Windows.Common-Controls"
    version="6.0.0.0"
    processorArchitecture="X86"
    publicKeyToken="6595b64144ccf1df"
    language="*"
    />
    </dependentAssembly>
    </dependency>
    </assembly>
  3. Add the manifest to your application's resource file as follows:
    CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest"
    Note  When you add the previous entry to the resource you must format it on one line. Alternatively, you can place the XML manifest file in the same directory as your application's executable file. The operating system will load the manifest from the file system first, then check the resource section of the executable. The file system version takes precedence.

posted on 2007-11-05 02:56 lovedday 閱讀(886) 評論(0)  編輯 收藏 引用 所屬分類: ▲ Software Program

公告

導航

統計

常用鏈接

隨筆分類(178)

3D游戲編程相關鏈接

搜索

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美激情成人在线| 日韩一级片网址| 亚洲作爱视频| 亚洲精品四区| 99国产欧美久久久精品| 日韩天堂在线观看| 亚洲淫片在线视频| 午夜精品一区二区三区四区 | 日韩午夜一区| 日韩一级二级三级| 欧美亚洲网站| 久久亚洲精品一区二区| 亚洲国产日韩欧美一区二区三区| 免费在线亚洲| 99在线热播精品免费99热| 国产在线视频欧美| 免费中文日韩| 欧美日韩综合在线免费观看| 国产乱码精品一区二区三区五月婷| 国产欧美日韩一区二区三区在线| 国产亚洲福利| 亚洲理论在线观看| 欧美一区中文字幕| 亚洲欧洲精品一区二区三区| 亚洲综合另类| 欧美福利一区二区| 国产亚洲一区二区在线观看 | 亚洲区欧美区| 欧美在线视频日韩| 欧美日韩国产影院| 黄色一区三区| 亚洲自拍都市欧美小说| 欧美va天堂在线| 亚洲欧美激情一区二区| 欧美日韩不卡合集视频| 亚洲国产精品视频一区| 欧美一区二区高清| 亚洲精品乱码久久久久久蜜桃91| 久久福利毛片| 国产日韩欧美综合一区| 亚洲免费小视频| 亚洲久久成人| 欧美sm极限捆绑bd| 在线精品在线| 久久综合电影一区| 久久国内精品视频| 国产毛片一区二区| 亚洲综合99| 日韩网站在线观看| 男人的天堂成人在线| 伊甸园精品99久久久久久| 久久国产精品网站| 午夜精品成人在线视频| 国产精品久久久亚洲一区| 亚洲香蕉成视频在线观看| 亚洲精品久久在线| 欧美人妖在线观看| 99视频一区| 亚洲精品影院| 欧美日韩视频不卡| 亚洲一区二区三区777| 一本久久知道综合久久| 欧美视频观看一区| 亚洲欧美国产77777| 亚洲午夜免费视频| 国产精品日韩精品欧美在线| 午夜精品999| 欧美在线精品免播放器视频| 久久精品道一区二区三区| 午夜精品影院| 精品盗摄一区二区三区| 99视频有精品| 日韩视频免费大全中文字幕| 亚洲国产小视频| 欧美精品 日韩| 在线亚洲一区二区| 在线视频精品| 国产一区二区三区久久| 美日韩免费视频| 你懂的视频欧美| 一本久道久久综合中文字幕 | 亚洲少妇自拍| 亚洲一区二区四区| 国内精品美女av在线播放| 亚洲一区3d动漫同人无遮挡| 在线亚洲一区二区| 国产一区二区三区的电影| 久久女同互慰一区二区三区| 久久影院午夜论| 日韩一级精品| 午夜精品久久久久久久蜜桃app| 好吊色欧美一区二区三区四区| 一区二区三区不卡视频在线观看 | 亚洲欧美日韩在线| 欧美在线一区二区| 亚洲日韩欧美视频一区| 宅男噜噜噜66一区二区 | 亚洲成人在线观看视频| 亚洲美女av网站| 韩日精品在线| 亚洲深夜福利网站| 最近中文字幕日韩精品| 亚洲一级电影| 日韩亚洲视频在线| 久久精品亚洲| 亚洲欧美另类国产| 久久久蜜桃精品| 亚洲综合视频1区| 欧美国产激情二区三区| 久久免费少妇高潮久久精品99| 欧美人交a欧美精品| 麻豆精品在线播放| 国产嫩草一区二区三区在线观看 | 一区二区三区免费看| 久久av一区二区三区漫画| 一片黄亚洲嫩模| 久久天天躁狠狠躁夜夜爽蜜月 | 国产精品成人一区二区艾草| 久久久999成人| 欧美日韩在线另类| 欧美国产日产韩国视频| 国产热re99久久6国产精品| 亚洲精品国产日韩| 亚洲欧洲三级电影| 久久久久久一区| 亚洲激情在线激情| 欧美精品色一区二区三区| 噜噜噜91成人网| 国产精品久久久久三级| 亚洲品质自拍| 最新成人av在线| 久久资源av| 蜜桃久久精品一区二区| 狠狠色狠狠色综合日日91app| 亚洲男女毛片无遮挡| 午夜精品国产| 国产精品一香蕉国产线看观看 | 欧美日韩国产精品自在自线| 美女国产一区| 在线国产日韩| 美乳少妇欧美精品| 欧美二区不卡| 亚洲精品国产精品国自产观看| 免费视频最近日韩| 亚洲国产欧美国产综合一区| 亚洲国产日韩一区二区| 蜜臀av在线播放一区二区三区| 欧美激情国产日韩精品一区18| 亚洲电影免费在线观看| 欧美成人国产一区二区| 亚洲国产精品一区制服丝袜 | 国产真实久久| 久久精品一区二区三区不卡| 久久久久久久久蜜桃| 韩国女主播一区二区三区| 久久久中精品2020中文| 亚洲国产三级在线| 亚洲一区免费网站| 国产日韩在线不卡| 蜜桃久久精品乱码一区二区| 99精品国产在热久久婷婷| 欧美影院成人| 亚洲国产精品一区二区第一页| 欧美国产日韩一区二区| 亚洲一二三区在线观看| 麻豆精品一区二区av白丝在线| 亚洲人成77777在线观看网| 欧美揉bbbbb揉bbbbb| 欧美自拍丝袜亚洲| 亚洲国产高清高潮精品美女| 亚洲一区二区精品视频| 伊人狠狠色丁香综合尤物| 欧美了一区在线观看| 亚洲欧美日韩天堂| 亚洲第一免费播放区| 午夜精品国产更新| 亚洲精品乱码久久久久久按摩观| 国产精品黄视频| 久久人人97超碰精品888| 一区二区电影免费观看| 免费亚洲婷婷| 亚洲欧美日韩国产精品 | 久久视频在线看| 日韩午夜免费| 在线观看国产精品淫| 国产精品免费在线| 欧美精品一区二区三区蜜桃 | 亚洲精品国产精品乱码不99| 欧美日韩日本视频| 亚洲精品女av网站| 香蕉久久国产| 日韩一区二区久久| 黄色在线一区| 国产人成精品一区二区三| 欧美日韩精品伦理作品在线免费观看 | 久久综合伊人77777尤物| 亚洲一区二区三区在线看| 91久久在线观看| 欧美777四色影视在线| 久久久久国产精品www|