欢迎来到天天文库
浏览记录
ID:14058257
大小:68.00 KB
页数:38页
时间:2018-07-25
《矿大物理实验 图形学实验三 矿大》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、矿大物理实验图形学实验三矿大导读:就爱阅读网友为您分享以下“图形学实验三矿大”的资讯,希望对您有所帮助,感谢您对92to.com的支持!pCmdUI->SetCheck(1);}else{pCmdUI->SetCheck(0);}}voidCDDALineView::OnFileClear(){//TODO:Addyourcommandhandlercodehereif(m_nChoice==8){m_nChoice=0;}elseif(m_nChoice==0){m_nChoice=8;}else{m_nChoice=8;
2、}Invalidate();}voidCDDALineView::OnColor(){//TODO:AddyourcommandhandlercodehereCColorDialogdlg;dlg.DoModal();m_Color=dlg.GetColor();if(m_Pen.m_hObject){m_Pen.DeleteObject();}m_Pen.CreatePen(PS_SOLID,1,m_Color);if(m_Brush.m_hObject){m_Brush.DeleteObject();}m_Brush.C
3、reateSolidBrush(m_Color);38}voidCDDALineView::OnFill(){//TODO:Addyourcommandhandlercodeherem_bFill=~m_bFill;//给出提示CDC*pDC=GetDC();CRectrect;GetClientRect(rect);m_strPrompt=选择填充式画图以后,请再选择交互式画圆,或者椭圆,矩形,这样画出的图形就会被填充pDC->TextOut(0,rect.bottom-25,m_strPrompt);ReleaseD
4、C(pDC);}voidCDDALineView::OnUpdateFill(CCmdUI*pCmdUI){//TODO:AddyourcommandupdateUIhandlercodehereif(m_bFill){pCmdUI->SetCheck(1);}elsepCmdUI->SetCheck(0);}voidCDDALineView::OnEllips(){//TODO:Addyourcommandhandlercodehereif(m_nChoice==9){m_nChoice=0;}elseif(m_nChoi
5、ce==0){m_nChoice=9;}else{m_nChoice=9;}}voidCDDALineView::OnUpdateEllips(CCmdUI*pCmdUI){//TODO:AddyourcommandupdateUIhandlercodehereif(m_nChoice==9){pCmdUI->SetCheck(1);}else{pCmdUI->SetCheck(0);}}//voidCDDALineView::OnDisplay()//{//TODO:Add38yourcommandhandlercodeh
6、ere//if(!m_pToolBar->m_hWnd)//{//m_pToolBar->Create(this);//m_pToolBar->LoadToolBar(IDR_SHAPE);//m_pToolBar->EnableDocking(CBRS_ALIGN_ANY);//DockControlBar(m_pToolBar);//}//if(m_nChoice==10)//{//m_nChoice=0;//ShowControlBar(m_pToolBar,TRUE,TRUE);//}//elseif(m_nChoi
7、ce==0)//{//m_nChoice=10;//ShowControlBar(m_pToolBar,FALSE,FALSE);//}//else//{//m_nChoice=10;//ShowControlBar(m_pToolBar,FALSE,FALSE);//}//}//voidCDDALineView::OnUpdateDisplay(CCmdUI*pCmdUI)//{////TODO:AddyourcommandupdateUIhandlercodehere//if(m_nChoice==10)//{//pCm
8、dUI->SetCheck(1);//}//else//{//pCmdUI->SetCheck(0);////}//}voidCDDALineView::OnMove(){//TODO:Addyourcommandhandlercodehere//m_bMove=~m_bMove;//if
此文档下载收益归作者所有