Why do my enum definitions have different icons in Class View?

Andrew Truckle

Sample enum:

enum class EnumCountType { Chairman, AuxiliaryCounsellor, Treasures, Presentations, Living, Conductor, Reader };

Class View:

enter image description here

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.

Piers Myers

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).

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324042396&siteId=291194637