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

天行健 君子當自強而不息

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 閱讀(896) 評論(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热这里只有成人精品国产| 一区二区三区精品久久久| 久久手机免费观看| 日韩天天综合| 激情欧美一区二区三区在线观看| 欧美一级淫片播放口| 91久久综合| 亚洲欧美日韩在线一区| 亚洲激情另类| 日韩系列欧美系列| 99视频日韩| 亚洲成色精品| 日韩视频在线你懂得| 亚洲电影第三页| 欧美精品一区二区三区久久久竹菊 | 亚洲欧美日韩爽爽影院| 亚洲欧美国产视频| 中文av字幕一区| 久久亚洲精选| 亚洲在线视频网站| 亚洲日本激情| 亚洲一区美女视频在线观看免费| 亚洲精品在线一区二区| 亚洲午夜电影网| 亚洲高清网站| 日韩亚洲欧美成人| 国产精品视频九色porn| 午夜精品理论片| 国产精品成人av性教育| 久久免费午夜影院| 欧美一区二区视频在线观看| 亚洲精品一区二| 欧美成年人视频| 99视频在线观看一区三区| 欧美日韩国产色综合一二三四 | 免费国产自线拍一欧美视频| 欧美日本在线观看| 久久影院亚洲| 欧美成人免费在线观看| 老司机午夜精品| 国产日韩亚洲欧美精品| 欧美色中文字幕| 国产精品日日摸夜夜摸av| 欧美韩国日本一区| 美国三级日本三级久久99| 亚洲国产精品久久精品怡红院| 国产精品mm| 久久成人一区二区| 一区二区三区福利| 亚洲欧美日韩另类| 欧美日韩亚洲一区二区| 中文久久精品| 老司机精品视频网站| 亚洲一区二区伦理| 日韩视频一区二区三区在线播放| 亚洲综合成人在线| 免费一级欧美在线大片| 中国成人黄色视屏| 亚洲国产精品www| 欧美成人有码| 久久综合一区二区| 欧美国产精品va在线观看| 久久综合五月| 欧美精品一区二区三区一线天视频 | 亚洲欧美大片| 亚洲自拍高清| 国产精品久久国产精品99gif| 一本色道久久综合狠狠躁篇的优点 | 伊人久久婷婷色综合98网| 久久久久久久久久久一区 | 91久久综合| 久久久亚洲精品一区二区三区| 久久九九全国免费精品观看| 亚洲在线免费| 欧美在线视频播放| 樱桃视频在线观看一区| 欧美日韩国产成人| 日韩视频精品在线| 久久综合色影院| 日韩视频在线观看免费| 欧美日韩国产综合网 | 欧美日韩和欧美的一区二区| 久久aⅴ国产欧美74aaa| 久久久久国产一区二区三区四区| 国产精品亚洲一区二区三区在线| 亚洲在线视频观看| 免费中文日韩| 欧美在线二区| 国产精品国产三级国产aⅴ无密码| 国产精品美女午夜av| 免费观看成人| 美脚丝袜一区二区三区在线观看 | 久久亚洲图片| 亚洲国产精品v| 欧美阿v一级看视频| 怡红院精品视频| 女人天堂亚洲aⅴ在线观看| 国产欧美一区二区三区沐欲| 亚洲九九九在线观看| 国产免费亚洲高清| 欧美激情性爽国产精品17p| 欧美freesex8一10精品| 久久久精品一区| 欧美三级第一页| 久久婷婷蜜乳一本欲蜜臀| 99精品99久久久久久宅男| 亚洲欧美日韩精品在线| 国产欧美综合在线| 一区二区三区在线免费观看| 一区在线视频观看| 久久久久久网站| 亚洲电影免费在线| 欧美日韩色婷婷| 在线视频精品一区| 91久久国产精品91久久性色| 欧美1区视频| 久久久国产成人精品| 亚洲国产精品一区二区尤物区| 亚洲福利视频免费观看| 欧美一区二区视频97| 亚洲欧洲精品天堂一级| 亚洲人成在线观看网站高清| 国产日韩一区二区三区在线播放 | av成人免费在线| 欧美极品在线视频| 亚洲午夜激情网页| 国产美女一区| 狠狠色丁香久久综合频道| 国产亚洲午夜| 午夜在线一区二区| 最新国产成人av网站网址麻豆| 欧美伦理视频网站| 在线日韩欧美| 亚洲电影中文字幕| 亚洲国产精品t66y| 亚洲伊人伊色伊影伊综合网| 亚洲福利视频一区| 欧美大片91| 欧美国产日本在线| 久久久久久久一区二区| 久久综合久久久| 欧美国产精品va在线观看| 香蕉视频成人在线观看| 久久国产一区二区| 国内自拍亚洲| 久久亚洲综合色一区二区三区| 亚洲精品国偷自产在线99热| 黄色精品免费| 亚洲国产女人aaa毛片在线| 欧美在线网址| 亚洲国产二区| 久久久久九九视频| 亚洲黄色免费网站| 亚洲精品中文字幕在线观看| 欧美高清不卡| 久久婷婷av| 国产精品福利网| 尤物yw午夜国产精品视频| 亚洲视频在线看| 亚洲欧美色一区| 亚洲午夜一区二区| 欧美日韩美女一区二区| 欧美激情小视频| 亚洲黄网站在线观看| 亚洲第一精品福利| 亚洲图片欧美日产| 国产精品毛片高清在线完整版| 久久在线观看视频| 欧美日韩综合在线免费观看| 亚洲国产欧美在线人成| 亚洲综合另类| 欧美日韩妖精视频| 最新高清无码专区| 亚洲曰本av电影| 夜夜嗨av一区二区三区中文字幕| 亚洲图片在线观看| 国产精品国产三级国产普通话三级 | 亚洲欧美日本精品| 国产精品国产三级国产专播精品人| 亚洲天堂成人在线观看| 欧美专区日韩视频| 亚洲精品乱码久久久久久蜜桃91| 在线视频欧美日韩| 久久综合九色综合久99| 午夜日韩在线| 亚洲美女在线看| 欧美理论视频| 蜜桃久久精品乱码一区二区| 国产午夜久久久久| 一区二区三区欧美日韩| 久久久噜噜噜久噜久久| 国内精品久久久久影院薰衣草| 欧美制服丝袜第一页| 国产日韩精品一区二区| 亚洲日韩欧美视频| 在线免费日韩片| 国产精品午夜春色av| 蜜桃av久久久亚洲精品| 亚洲理伦在线|