Hello

We want to use a method that programs in Win Xp shown with Xp style.(such as button and ...)
I learn it Empirically.

For this we must do below:
1.In the first of our code call InitCommonControls :

include \masm32\include\comctl32.inc
includelib \masm32\lib\comctl32.lib
.
.
.
invoke InitCommonControls
invoke DialogBoxParam,...

2.In resource file (rsrc.rc or ...) add this line :

1 24 "manifest.txt"

that manifest.txt is a text file that contains :
<?xml version="1.0" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="M" type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
</assembly>
Posted on 2004-03-23 10:45:12 by hamed_hhz
Posted on 2004-03-23 16:05:29 by QvasiModo
Hi,

I want to know if this method takes effect only under win xp?
Posted on 2004-04-22 08:16:45 by purpleendurer
Yes, it only works for Common Controls Library version 6 or greater. Which unfortunately is not a redistributable. :(
Posted on 2004-04-22 11:35:08 by QvasiModo
Thanks QvasiModo


I tried it under win 2000, so it did not take effect.
Posted on 2004-04-22 23:39:34 by purpleendurer