How to make Top view the active viewport and zoom to extents in C++ SDK

Refer to that topic, because the name of the view can be set manually, if you only judge the view name “Top”, it may cause errors, so you need another way to judge the view “Top”. Dale mentioned the method in that topic. You can refer to it. Do you need C++ example?