Old C++ Visio add-in to look up for commands. May be probably interesting for historical reasons, as the command search has been added to Visio by Microsoft. Or if you decide to build a Visio add-in in C++ for whatever reason
https://unmanagedvisio.com/products/find-visio-command-addin/