Setting Viewport Titles
This brief guide demonstrates how to set the title of a viewport using C/C++.
You would like to change the name, or title, or a viewport using the the Rhino C/C++ SDK. For example, you would like to rename the “Front” viewport to say “Facade.”
To change the title of a viewport, use
CRhinoViewport::SetName. A Rhino view contains a “main viewport” that fills the entire view client window. To get a view’s main viewport, you can call
CRhinoView* view = RhinoApp().ActiveView(); if (view) view->MainViewport().SetName("Facade");