The close button and link are displayed in the bubble Prompt window.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.