从Resource Dll或exe加载对话框和修改控件属性。 [英] Load Dialogs and Modify the control properties from Resource Dll or exe.

查看:64
本文介绍了从Resource Dll或exe加载对话框和修改控件属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在努力从资源DLL或exe(MFC)获取对话框.rc文件,以修改控制属性,如loacation,可见
没有。我可以使用哪种api? 

提前致谢


我自己就像资源调谐器那样做



使用资源调优器你可以



  • 拥有快速资源查看器来浏览所有资源
  • 通过替换图标和徽标来重新标记应用程序
  • 自定义您喜欢的Windows程序的GUI元素
  • 翻译第三方应用程序
  • 扫描计算机上的目录和驱动器以查找隐藏的资源
  • 提取图像s,图标,声音,动画
  • 使旧版应用程序使用Windows XP,Vista,7和8的全新外观
  • 告诉Windows使用管理权限运行应用程序
  • 在资源编辑器中无缝打开UPX压缩文件,无需长时间的解决方法

解决方案

您好
lhx24,


感谢您在此发布。


>>我正在努力从资源DLL或exe(MFC)获取对话框.rc文件,以修改控制属性,如loacation,visibleor not。我可以使用哪种API使用?


对于这种情况,也许
资源函数
可以为您提供帮助。例如,资源枚举函数使应用程序能够获取指定模块中的资源类型,名称和语言列表。


在MFC中,每个控件通常与一个类对象相关。该对象包含属性和co的方法。您可以尝试设置object属性的值以更改控件的属性。


有关详细信息,请参阅以下文档。


https://msdn.microsoft.com/en-us/library/47xcww9x.aspx


希望这个可以帮助你。


最好的问候,


Baron Bi


I'm working on getting dialog .rc files from a Resource DLL or exe (MFC), to Modify the control properties such as loacation,visibleor not. Which api can I use? 
Thanks in advance

do it by myself just like resource tuner does

With Resource Tuner You Can

  • Have a fast Resource Viewer to browse resources of all types
  • Rebrand your applications by replacing icons and logos
  • Customize GUI elements of your favorite Windows programs
  • Translate third-party applications
  • Scan the directories and drives on your computer for hidden resources
  • Extract images, icons, sounds, animations
  • Make legacy applications use the new look of Windows XP, Vista, 7 and 8
  • Tell Windows to run your application with administrative privileges
  • Open UPX-compressed files seamlessly in Resource Editor, without long workarounds

解决方案

Hi lhx24,

thanks for posting here.

>>I'm working on getting dialog .rc files from a Resource DLL or exe (MFC), to Modify the control properties such as loacation,visibleor not. Which api can I use?

For this case, maybe the Resource Functions could be help of you. For example, the resource enumeration functions that enable an application to obtain lists of resource types, names, and languages in a specified module.

In MFC, each control is usually related to a class object. The object contains the property and the methods of the control. You could try to set the value of the object property in order to change the property of the control.

For more information, you could refer to this document below.

https://msdn.microsoft.com/en-us/library/47xcww9x.aspx

Hope this could be help of you.

Best Regards,

Baron Bi


这篇关于从Resource Dll或exe加载对话框和修改控件属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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