In fact, it has been clearly stated in msdn that not only tts_close (0x80) is required, but you also need to implement the XP style by yourself, that is, the following two commonly used methods:
1. Insert a resource type of 24 in the executable file with ID 1 to implement the XP style. For details about resource 1, see method 2.
2. In the application program directory, upload a file named .exe. manifest with the same name as the application program. The content is as follows:
<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<Assembly xmlns = "urn: Schemas-Microsoft-com: ASM. V1" manifestversion = "1.0">
<Assemblyidentity
Name = "replace this with your application name"
Processorarchitecture = "x86"
Version = "1.0.0.0"
Type = "Win32"/>
<Description> replace this with your application description </description>
<Dependency>
<Dependentassembly>
<Assemblyidentity
Type = "Win32"
Name = "Microsoft. Windows. Common-Controls"
Version = "6.0.0.0"
Processorarchitecture = "x86"
Publickeytoken = "6595b64144ccf1df"
Language = "*"
/>
</Dependentassembly>
</Dependency>
</Assembly>
In this case, if your program runs in Windows XP or 2003, the button will be closed, and you can even add a link. In fact, you only need a flag ttf_parselinks (0x1000 ), if <A>... </a> the link text is displayed.
Note: When the program is initialized, call the initcommoncontrols API function.