为什么我的枚举定义在类视图中具有不同的图标?
示例 enum
:
enum class EnumCountType { Chairman, AuxiliaryCounsellor, Treasures, Presentations, Living, Conductor, Reader };
类视图:
所有这些枚举都是以相同的方式创建的(在相应标题的顶部)。
然而,我在类视图中看到了几种类型的图标:
- 勾选
- 挂锁
- 标志
这是为什么?我以前从未注意到这一点。
Visual Studio 2022 中的 Visual C++ MFC 对话框项目。
我查看了 类视图和对象浏览器图标,但我在那里看不到它们。
Sample enum
:
enum class EnumCountType { Chairman, AuxiliaryCounsellor, Treasures, Presentations, Living, Conductor, Reader };
Class View:
All of these enums are created in the same way (at the top of the respective headers).
Yet, I see several types of icons in Class View:
- Tick
- Padlock
- Flag
Why is this? I never noticed it before.
Visual C++ MFC Dialog project in Visual Studio 2022.
I looked Class View and Object Browser icons but I can't see them there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们是源代码控制状态图标:
蓝色锁
- 文件未更改,“已签入”红色勾号
- 文件已更改,“待编辑”绿色加号
- 文件未添加到源代码管理,“待添加”以前从未见过白旗图标,如果您将鼠标指针悬停在它上面,那么它应该告诉您它的含义。
对我来说,它们仅在我的解决方案资源管理器中针对文件显示,我从未在类视图中看到它们 - 也许这是 TortoiseGit 或 C++ 项目的功能(我只在 Windows 版 Git 中使用过 C# 项目)。
They are source control status icons:
blue lock
- file unchanged, "Checked in"red tick
- file changed, "Pending edit"green plus
- file not added to source control, "Pending add"Never seen the white flag icon before, if you hover your mouse pointer over it then it should tell you what it means.
For me they are only shown in my Solution Explorer against files, I have never seen them in the Class View - perhaps it's a feature of TortoiseGit or C++ projects (I have only used C# projects with Git for Windows).