I need to create a combobox with an XP style IN a DLL with C++ and WIN32 API (no MFC). I managed to create the control in the DLL (by not in XP style). I managed to create XP style combobox in an exe with manifest, but it does not work in the DLL.
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
相关文章
- How to show location of errors, references to memb
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- How to track MongoDB requests from a console appli
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
In order to force your control to use XP themed rendering regardless if it's enabled in a manifest or not you will need to use visual styles API. This is available on XP and above and provides support for rendering most common controls. More information on using the API can be found here.
In order for your DLL to load comctl v6 (the DLL that provides "XP-themed" versions of the common controls) without relying on its hosting process to have the appropriate manifest, you need to make your DLL isolation-aware.
Either use the C++ class described here in MSDN, or try #defining
ISOLATION_AWARE_ENABLED=1
.