Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Sep 13, 2008 8:18 am Post subject: HOWTO: Enable visual styles for a property sheet extension |
|
|
To enable XP visual styles in a property sheet extension, the property sheet extension dll must have an embedded manifest file which specifies that v6.0 of comctl32.dll must be used by the extension dll. VS 2005 and above automatically embed a manifest file in the generated dll file, but the manifest file does not contain a reference to comctl32.dll v6.0. This reference can be added as follows :
Download the manifest fragment file comctl32_v6_fragment.manifest . This contains a reference to comctl32.dll v6.0. Copy this file to the project folder.
In VS 2005 and above, open the Project Properties dialog box. In the 'Configuration Properties' --> 'Manifest Tool' --> 'Input And Output' page, specify 'comctl32_v6_fragment.manifest' in the 'Additional Manifest Files' text box.
Rebuild the project and restart explorer. The next time the extension is loaded, it will use comctl32.dll v6.0. |
|