// Движение void MakeMove( int Ind ){ int n,Page; char Ch; float Angle = 3/DimAngle; Page=0; SetPages(Page,1-Page); while (!kbhit()){ for (n=0;n<4;n++) Rotate_Comp(TX[Ind][n],TY[Ind][n],TR[Ind][n]); clearviewport(); ShowLoops(Ind); ShowPlanes(Ind); ShowNamb(); Page=1-Page; SetPages(Page,1-Page); }; while(kbhit()) getch(); clearviewport(); };
void CTabView::OnUpdate(CView* /*pSender*/, LPARAM lHint, CObject* /*pHint*/) { // TODO: 在此添加专用代码和/或调用基类 CspDoc *m_pDoc = (CspDoc*)GetDocument(); switch(lHint){ case TVN_SELCHANGED: GetTabCtrl().DeleteAllItems(); SetTabs(m_pDoc->m_nViewType); SetPages(m_pDoc->m_nViewType,m_pDoc->m_nTabIndex); break; case TCN_SELCHANGE: SetPages(m_pDoc->m_nViewType,m_pDoc->m_nTabIndex); break; } }
void CTabView::OnInitialUpdate() { // TODO: Add your specialized code here and/or call the base class rootPage.Create(IDD_TAB_ROOT,this); monitorPage.Create(IDD_TAB_MONITOR,this); sendPage.Create(IDD_SEND,this); dpPage.Create(IDD_TAB_DP,this); SetTabs(0); SetPages(0,0); CCtrlView::OnInitialUpdate(); }