hello
I want to find draw XP style button with win32asm source code , anybody knows? thanks!
Posted on 2005-08-27 12:15:07 by jhkdiy
You could either use XP theme support for forcing the application to use XP style controls or manually create the button.

1. To force an application to use XP theme style you should include XML manifest file in your resource script and also InitCommonControls when application starts.

in rc:
1 24 "style.manifest"


style.manifest:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<assembly
  xmlns="urn:schemas-microsoft-com:asm.v1"
  manifestVersion="1.0">
<assemblyIdentity
    processorArchitecture="x86"
    version="5.1.0.0"
    type="win32"
    name="app name goes here"/>
<description>app description goes here</description>
<dependency>
  <dependentAssembly>
    <assemblyIdentity
        type="win32"
        name="Microsoft.Windows.Common-Controls"
        version="6.0.0.0"
        publicKeyToken="6595b64144ccf1df"
        language="*"
        processorArchitecture="x86"/>
  </dependentAssembly>
</dependency>
</assembly>


In second case you'll need to make a custom drawn control . Either use a bitmap image for making the button looks XPish (check at EXAMPLE5\NOVA). Or: create static control. RoundRect to draw the graphic shape of the button. Fill it with appropriate colors. And draw some text on it.
Posted on 2005-08-27 13:08:27 by arafel
Thank you very much!
Posted on 2005-08-27 20:27:04 by jhkdiy