更改“关于”框中的图标
您能告诉我如何更改“关于”框中显示的默认图像吗? MFC默认是三个框的。我想将其更改为我使用 MFC 创建的当前图标。我的图标有效,但我只需要更改“关于”框中的图片/图像。
感谢您的及时回复。
干杯。
Could you tell me as to how do I change the default image that is displayed in an About Box? The one that comes default with MFC as three boxes. I would want to change that to my present icon that I have created using MFC. My icon works but I just need to change the picture/image in my About Box.
Thanks for your prompt replies.
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
典型的 MFC 应用程序将“关于”对话框作为资源文件的一部分,可以在所见即所得编辑器中进行编辑。打开项目
.rc
文件,然后单击“关于框”对话框(默认 IDD 为 IDD_ABOUTBOX)。右键单击图标并选择属性。从那里您可以更改使用的图标。通常,您可以通过向应用程序添加其他图标资源并指定新 ID 来完成此操作。或者,您可以简单地更改现有的图标资源(默认情况下它是 IDR_MAINFRAME)。A typical MFC application has the About dialog as part of the resource file that can be edited in the WYSIWYG editor. Open your projects
.rc
file, and click on the About Box dialog (the default IDD is IDD_ABOUTBOX). Right click on the Icon and select properties. From there you can change the icon that is used. Usually you would do this by adding additional icon resources to your application and specifying the new ID. Optionally, you could simply change the existing icon resource (by default it is IDR_MAINFRAME).