从MFC对话框项目中删除QAT资源? [英] Removing QAT resources from a MFC Dialog project?

查看:152
本文介绍了从MFC对话框项目中删除QAT资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,我一直在尝试解决此问题,并且可能偶然发现了该解决方案.但是,如果可以的话,我想将它传递给您以进行确认.

I am been trying to resolve this issue for a while and may have stumbled over the solution. But I wanted to run it past you for confirmation if I may.

我有一个基于Dialog的应用程序,我从VS2015迁移到VS2017 RC.我的应用程序使用 appTranslator 支持多种语言翻译.我注意到QAT(我认为是对的,快速访问工具栏)资源突然出现在appTranslator中.因此,它们现在是我的应用程序资源的一部分.即使我没有在对话框应用程序中使用QAC.

I have a Dialog based application and I moved from VS2015 to VS2017 RC. My application supports several language translations using appTranslator. I noticed that the QAT (I think that is right, Quick Access Toolbar) resources suddenly appears in appTranslator. So they were now part of my application resources. Even though I am not using a QAC in my dialog application.

然后我在资源编辑器中的VS2017 RC中无意中发现了这一点:

I then stumbled over this in VS2017 RC in the resource editor:

我注意到那里的那一点:

I noticed this bit in there:

#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
LANGUAGE 9, 1
#include "res\MeetingScheduleAssistant.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"      // Standard components
#if !defined(_AFXDLL)
#include "afxribbon.rc"   // MFC ribbon and control bar resources
#endif
#endif

我不想盲目地对我的应用程序进行更改,这就是为什么我首先要问的原因.但是我看到了后者的MFC功能区和控制栏资源,想知道这是否是罪魁祸首和/或是否可以将其删除?

I don't want to blindly make changes to my application, which is why I am asking first. But I saw the latter MFC ribbon and control bar resources and wondered if this was the culprit and / or if it can be removed?

推荐答案

这就是解决方法.要删除或注释掉:

That was the resolution. To remove or comment out:

#if !defined(_AFXDLL)
#include "afxribbon.rc"   // MFC ribbon and control bar resources
#endif

我在新的Visual Studio向导中注意到,它引用了项目设置中的功能区,但是您无法删除该设置,因为它已被禁用.

I notice in the new Visual Studio Wizards that it refers to the Ribbon in the project setup, but you can't remove the setting as it is disabled.

这篇关于从MFC对话框项目中删除QAT资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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