DLL中的XP样式组合框 [英] An XP style combobox in a DLL

查看:71
本文介绍了DLL中的XP样式组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在具有C ++和WIN32 API(无MFC)的DLL中创建具有XP样式的组合框. 我设法在DLL中创建控件(不是XP风格). 我设法在带有清单的exe中创建XP样式的组合框,但在DLL中不起作用.

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.

推荐答案

为了让您的DLL加载comctl v6(提供通用控件的"XP主题"版本的DLL),而无需依赖于其宿主进程适当的清单,您需要使DLL 可识别隔离.

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.

请使用此处在MSDN中,或尝试#defining ISOLATION_AWARE_ENABLED=1.

Either use the C++ class described here in MSDN, or try #defining ISOLATION_AWARE_ENABLED=1.

这篇关于DLL中的XP样式组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆