欢迎来到天天文库
浏览记录
ID:25918687
大小:340.50 KB
页数:22页
时间:2018-11-23
《精密机械与控制》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、精密機械與控制Project2指導教授:張仁宗Date:2004/5/17開新專案ActiveMILControl面板SystemControlImageControlDigitizerControl(1)DigitizerControl(2)DisplayControl結果程式•m_Digitizer1->GrabContinuous();•m_Display1.SetWindowPos(NULL,//pWndInsertAfter•0,//x•0,//y•(int)(m_Digitizer1->SizeX*m_Digitizer1->ScaleX),//cx•(int)(m_D
2、igitizer1->SizeY*m_Digitizer1->ScaleX),//cy•SWP_NOMOVE
3、SWP_NOOWNERZORDER);//flags附錄(程式碼)://jiuihhuy.cpp:Definestheclassbehaviorsfortheapplication.//#include"stdafx.h"#include"jiuihhuy.h"#include"jiuihhuyDlg.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endif//
4、/////////////////////////////////////////////////////////////////////////////CJiuihhuyAppBEGIN_MESSAGE_MAP(CJiuihhuyApp,CWinApp)//{{AFX_MSG_MAP(CJiuihhuyApp)//NOTE-theClassWizardwilladdandremovemappingmacroshere.//DONOTEDITwhatyouseeintheseblocksofgeneratedcode!//}}AFX_MSGON_COMMAND(ID_HELP,CW
5、inApp::OnHelp)END_MESSAGE_MAP()///////////////////////////////////////////////////////////////////////////////CJiuihhuyAppconstructionCJiuihhuyApp::CJiuihhuyApp(){//TODO:addconstructioncodehere,//PlaceallsignificantinitializationinInitInstance}//////////////////////////////////////////////////
6、/////////////////////////////TheoneandonlyCJiuihhuyAppobjectCJiuihhuyApptheApp;///////////////////////////////////////////////////////////////////////////////CJiuihhuyAppinitializationBOOLCJiuihhuyApp::InitInstance(){AfxEnableControlContainer();//Standardinitialization//Ifyouarenotusingthesefe
7、aturesandwishtoreducethesize//ofyourfinalexecutable,youshouldremovefromthefollowing//thespecificinitializationroutinesyoudonotneed.#ifdef_AFXDLLEnable3dControls();//CallthiswhenusingMFCinasharedDLL#elseEnable3dControlsStatic();//CallthiswhenlinkingtoMFCstatically#endifCJiuihhuyDlgdlg;m_pMainWn
8、d=&dlg;intnResponse=dlg.DoModal();if(nResponse==IDOK){//TODO:Placecodeheretohandlewhenthedialogis//dismissedwithOK}elseif(nResponse==IDCANCEL){//TODO:Placecodeheretohandlewhenthedialogis//dismissedwithCancel}//Sincethedialoghasbeenclose
此文档下载收益归作者所有