资源描述:
《visualc++ mfc简要介绍 计算机专业毕业设计外文翻译 毕业设计外文翻译》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、计算机专业毕业设计外文翻译VisualC++MFC简要介绍工学部工学一部专业计算机科学与技术班级学号姓名指导教师负责教师沈阳航空工业学院北方科技学院2008年7月沈阳航空工业学院北方科技学院毕业设计(外文翻译)IntroductiontoMFCProgrammingwithVisualC++Version6.xbyMarshallBrainVisualC++ismuchmorethanacompiler.Itisacompleteapplicationdevelopmentenvironmentthat,whenusedasintended,letsyoufullyexploittheo
2、bjectorientednatureofC++tocreateprofessionalWindowsapplications.Inordertotakeadvantageofthesefeatures,youneedtounderstandtheC++programminglanguage.IfyouhaveneverusedC++,pleaseturntotheC++tutorialsintheC/C++Tutorialspageforanintroduction.YoumustthenunderstandtheMicrosoftFoundationClass(MFC)hierarc
3、hy.ThisclasshierarchyencapsulatestheuserinterfaceportionoftheWindowsAPI,andmakesitsignificantlyeasiertocreateWindowsapplicationsinanobjectorientedway.ThishierarchyisavailableforandcompatiblewithallversionsofWindows.ThecodeyoucreateinMFCisextremelyportable.Thesetutorialsintroducethefundamentalconc
4、eptsandvocabularybehindMFCandeventdrivenprogramming.Inthistutorialyouwillenter,compile,andrunasimpleMFCprogramusingVisualC++.Tutotial2providesadetailedexplanationofthecodeusedinTutorial1.Tutorial3discussesMFCcontrolsandtheircustomization.Tutorial4coversmessagemaps,whichletyouhandleeventsinMFC.Wha
5、tistheMicrosoftFoundationsClassLibrary?Let'ssayyouwanttocreateaWindowsapplication.Youmight,forexample,needtocreateaspecializedtextordrawingeditor,oraprogramthatfindsfilesonalargeharddisk,oranapplicationthatletsauservisualizetheinterrelationshipsinabigdataset.Wheredoyoubegin?Agoodstartingplaceisth
6、edesignoftheuserinterface.First,decidewhattheusershouldbeabletodowiththeprogramandthenpickasetofuserinterfaceobjectsaccordingly.TheWindowsuserinterfacehasanumberofstandardcontrols,suchasbuttons,menus,scrollbars,andlists,thatarealreadyfamiliartoWindowsusers.Withthisinmind,theprogrammermustchooseas
7、etofcontrolsanddecidehowtheyshouldbearrangedonscreen.Atime-honoredprocedureistomakearoughsketchoftheproposeduserinterface(bytraditiononanapkinorthebackofanenvelope)andplaywiththeelementsuntiltheyfeelright.Forsmallproje