If I create a button in the Win32 API, the default conrol theme looks like a Windows 95/98 button. I remember in the past the Microsoft forums told me how to get the XP style, but I don't recall how to do this. Is there a way to programatically or manually change the control themes in a Win32 application? Thanks.
相关问题
- Sorting 3 numbers without branching [closed]
- Multiple sockets for clients to connect to
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
SetWindowTheme Function would appear to be the solution. HTH
You want to Enable Visual Styles by adding a manifest dependency to the common control 6 assembly to your applications manifest.
If you use DevStudio it should be as simple as adding the #pragma directive from the linked page: