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

天行健 君子當自強而不息

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 閱讀(900) 評論(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>
            欧美在线free| 性亚洲最疯狂xxxx高清| 国产精品一区二区三区四区| 欧美jizzhd精品欧美喷水| 国产精品国产亚洲精品看不卡15 | 国产日韩欧美成人| 亚洲精品一区二区三区av| 一区二区在线看| 午夜精品在线观看| 亚洲欧美资源在线| 欧美日韩你懂的| 亚洲国产精品v| 在线精品国精品国产尤物884a| 亚洲欧美在线高清| 亚洲欧美成人综合| 欧美三级黄美女| 亚洲伦理久久| 亚洲精品国产欧美| 免播放器亚洲| 欧美1级日本1级| 精品1区2区| 欧美在线免费观看视频| 欧美在线一区二区| 国产日韩免费| 午夜精品久久久久久久蜜桃app| 亚洲香蕉视频| 欧美午夜电影在线观看| 亚洲美女毛片| 亚洲永久精品大片| 欧美日韩免费观看一区=区三区| 91久久国产精品91久久性色| 日韩视频一区二区三区在线播放| 蜜臀av一级做a爰片久久| 欧美成人亚洲成人| 亚洲精品日韩在线观看| 欧美大尺度在线| 91久久国产综合久久蜜月精品| 亚洲免费观看高清在线观看 | 美女视频黄免费的久久| 尤物九九久久国产精品的特点| 久久精品一区二区三区不卡牛牛| 男人的天堂亚洲| 亚洲人www| 欧美视频中文字幕| 亚洲欧美怡红院| 久久这里有精品视频| 亚洲黄色影片| 欧美日韩在线播放| 午夜伦欧美伦电影理论片| 久久久久九九视频| 亚洲精品日本| 国产精品久久久久久久久免费樱桃 | 99av国产精品欲麻豆| 欧美日韩一区二区三区四区五区| 亚洲私人影吧| 欧美1区2区| 亚洲综合视频在线| 韩国免费一区| 欧美日韩理论| 久久久精品免费视频| 亚洲清纯自拍| 久久久久久久久久久一区| 亚洲国产专区| 国产精品一级二级三级| 蜜桃av噜噜一区二区三区| 亚洲视频成人| 免费亚洲一区二区| 亚洲一区二区三区四区中文| 黄色一区三区| 国产精品对白刺激久久久| 久久久一二三| 亚洲天堂成人| 欧美激情一二区| 性高湖久久久久久久久| 亚洲激情女人| 国产一级精品aaaaa看| 欧美精品一区二区三| 久久久久成人网| 亚洲影院色无极综合| 91久久视频| 免费在线成人av| 欧美在线中文字幕| 在线视频亚洲欧美| 亚洲欧洲三级电影| 国产在线乱码一区二区三区| 欧美性天天影院| 欧美巨乳在线| 老司机午夜精品视频| 欧美综合国产精品久久丁香| 国产精品99久久久久久久女警| 亚洲二区三区四区| 久久亚洲国产精品日日av夜夜| 亚洲欧美变态国产另类| av成人免费在线| 91久久久久久久久| 在线观看亚洲视频| 国产欧美精品国产国产专区| 欧美日韩一区二区三区高清| 免费观看一级特黄欧美大片| 久久综合色播五月| 久久久av毛片精品| 久久精品99国产精品酒店日本| 亚洲制服欧美中文字幕中文字幕| 99精品久久久| 一区二区三区久久久| 日韩一区二区福利| 一区二区免费看| 一区二区三区四区国产| 亚洲最新视频在线| 在线亚洲精品| 亚洲一区图片| 亚洲欧美日韩另类精品一区二区三区| 99精品视频免费观看视频| 日韩视频在线一区| 一区二区三区四区五区视频| 99在线精品视频在线观看| 亚洲毛片av| 在线综合欧美| 欧美亚洲视频| 久久精品最新地址| 欧美xx69| 欧美精品亚洲精品| 欧美日韩国产影院| 国产精品社区| 激情五月***国产精品| 亚洲国产欧美一区二区三区同亚洲| 91久久国产自产拍夜夜嗨| 亚洲精品一二| 午夜一级久久| 美女视频网站黄色亚洲| 亚洲第一成人在线| 日韩五码在线| 欧美一级久久久| 美女图片一区二区| 欧美日韩精品二区| 国产亚洲激情在线| 亚洲欧洲在线看| 亚洲自拍偷拍麻豆| 六月天综合网| 9l视频自拍蝌蚪9l视频成人| 午夜精品区一区二区三| 久久中文欧美| 国产精品美女久久| 亚洲第一色中文字幕| 这里只有精品视频在线| 久久这里有精品视频| 日韩视频一区二区三区在线播放免费观看 | 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 欧美精品v日韩精品v韩国精品v| 国产精品啊v在线| 在线免费日韩片| 亚洲一区二区三区在线视频| 久久裸体艺术| 99在线热播精品免费| 久久久女女女女999久久| 欧美连裤袜在线视频| 一区二区三区在线免费视频| 一区二区三区免费看| 美女网站在线免费欧美精品| 亚洲视频在线一区| 欧美国产精品劲爆| 国产欧美视频一区二区三区| 99成人免费视频| 麻豆国产va免费精品高清在线| 一区二区三区精品在线| 美日韩精品视频免费看| 国产视频在线观看一区二区| 亚洲一区在线观看免费观看电影高清 | 欧美激情中文字幕乱码免费| 欧美一区国产二区| 国产精品国产精品| 一本久久精品一区二区| 男人插女人欧美| 欧美一区二区视频在线观看2020 | 在线性视频日韩欧美| 久久久久久电影| 亚洲一品av免费观看| 欧美激情一区在线观看| 亚洲二区精品| 在线看欧美日韩| 久久精品盗摄| 亚洲高清久久| 亚洲精品网站在线播放gif| 久久精品国产亚洲高清剧情介绍| 国产精品xvideos88| 一区二区三区四区国产| 亚洲国产成人精品久久久国产成人一区| 欧美在线视频一区二区| 国产欧美精品一区二区色综合| 亚洲天堂男人| 一区二区三区欧美在线| 欧美日本韩国一区| 日韩午夜电影在线观看| 欧美激情第3页| 久久综合九色综合欧美就去吻| 国产一区二区av| 久久精品一区四区| 欧美在线高清| 在线观看国产精品淫| 欧美成人一区二区三区在线观看|