Windows 10 Dialog Title Bar Behavior

How to get the title of the dialog box title in my applications, such as dialog boxes in Windows 10. I noticed that if the minimum version of Windows is set to 6.0 or higher in the linker options, this will cause titlebars to become thick. I have <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> in my application manifest, but if I installed the minimum version of Windows in the EXE file with the linker up to 5.01 (for compatibility with XP), the headers will be thinner.

The application is written in a combination of C and C ++ and uses a simple Windows API.

Is there a way to get the headers in the dialogs to use non-backward compatible behavior without giving up XP support for my application?

Problem example

+6
source share
1 answer

What you can do is set your dialog box as borderless and draw your own title bar and close button. This would guarantee mobility among all platforms, as the drawing would be completely determined by your code, and not allowed at the discretion of the operating system API.

-3
source

All Articles