Does your application manifest indicate that you want to use comctl32.dll version 6? This is one of the requirements for using visual styles and a more modern look in Windows XP.
To create a manifest and enable the app to use visual styles.
Link to ComCtl32.lib and call InitCommonControls (see the documentation for the SDK platform in the MSDN library).
Add a file called YourApp.exe.manifest to the source tree that has the following XML 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.YourApp" 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>
Add the manifest to the application resource file as follows
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest"
Note. When you add a previous record to a resource, you must format it on one line. Alternatively, you can put the XML manifest file in the same directory as the application executable. The operating system will first download the manifest from the file system, and then check the resource section of the executable file. The file system version takes precedence.
1800 INFORMATION
source share