1、切换视图 1、1 增加视图切换按钮,并添加消息响应函数。 void COCCDemoView::OnButtonFrontview() {//前视图m_View->SetProj(V3d_Yneg);m_View->FitAll(); }void COCCDemoView::OnButtonRearview() {//后视图m_View->SetProj(V3d_Ypos);m_View->FitAll(); }void COCCDemoView::OnMenuLeftview() {//左视图m_View->SetProj(V3d_Xneg);m_View->FitAll(); }void COCCDemoView::OnButtonRightview() {//右视图m_View->SetProj(V3d_Xpos);m_View->FitAll(); }void COCCDemoView::OnMenuTopview() {//俯视图m_View->SetProj(V3d_Zpos);m_View->FitAll(); }void COCCDemoView::OnButtonUpview() {//仰视图m_View->SetProj(V3d_Zneg);m_View->FitAll(); }void COCCDemoView::OnMenuAxo() {//轴视图m_View->SetProj(V3d_XposYnegZpos);m_View->FitAll(); }void COCCDemoView::OnMenuFitall() {//适应性窗口m_View->FitAll(); }