jeudi 7 juillet 2016

List of available overrides in Visual Studio 2012

Working with a C++ project with Visual Studio I encountered this issue. In Class View if you click the class and then in the Properties window you click the Overrides button you will see the lists of the virtual functions available. Then you can easily check if an override has already been implemented or add a new one. But this list seems to work only for special MFC classes, like CWnd, CStatic, etc. The list is empty for my own classes derived from the "Base Type" that I've implemented. I haven't found how to "mark" or "teach" Visual Studio to recognize my virtual methods. Is that possible? Or it works only for "Microsoft" classes? EDIT: My question is about how to have this automatic tool in Microsoft Visual Studio IDE working for my classes and not only for Microsoft EDiT2: I'm interested in how to automatically add a new method, not only to check if a virtual method has been already overridden

Aucun commentaire:

Enregistrer un commentaire