资源描述:
《visualc++ mfc简要介绍——毕业设计外文翻译》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、计算机专业毕业设计外文翻译VisualC++MFC简要介绍工学部工学一部专业计算机科学与技术班级4418101学号200413181038姓名张为指导教师史俊负责教师沈阳航空工业学院北方科技学院2008年7月沈阳航空工业学院北方科技学院毕业设计(外文翻译)IntroductiontoMFCProgrammingwithVisualC++Version6.xbyMarshallBrainVisualC++ismuchmorethanacompiler.Itisacompleteapplicationdevelopmentenvironmentth
2、at,whenusedasintended,letsyoufullyexploittheobjectorientednatureofC++tocreateprofessionalWindowsapplications.Inordertotakeadvantageofthesefeatures,youneedtounderstandtheC++programminglanguage.IfyouhaveneverusedC++,pleaseturntotheC++tutorialsintheC/C++Tutorialspageforanintrod
3、uction.YoumustthenunderstandtheMicrosoftFoundationClass(MFC)hierarchy.ThisclasshierarchyencapsulatestheuserinterfaceportionoftheWindowsAPI,andmakesitsignificantlyeasiertocreateWindowsapplicationsinanobjectorientedway.ThishierarchyisavailableforandcompatiblewithallversionsofW
4、indows.ThecodeyoucreateinMFCisextremelyportable.ThesetutorialsintroducethefundamentalconceptsandvocabularybehindMFCandeventdrivenprogramming.Inthistutorialyouwillenter,compile,andrunasimpleMFCprogramusingVisualC++.Tutotial2providesadetailedexplanationofthecodeusedinTutorial1
5、.Tutorial3discussesMFCcontrolsandtheircustomization.Tutorial4coversmessagemaps,whichletyouhandleeventsinMFC.WhatistheMicrosoftFoundationsClassLibrary?Let'ssayyouwanttocreateaWindowsapplication.Youmight,forexample,needtocreateaspecializedtextordrawingeditor,oraprogramthatfind
6、sfilesonalargeharddisk,oranapplicationthatletsauservisualizetheinterrelationshipsinabigdataset.Wheredoyoubegin?Agoodstartingplaceisthedesignoftheuserinterface.First,decidewhattheusershouldbeabletodowiththeprogramandthenpickasetofuserinterfaceobjectsaccordingly.TheWindowsuser
7、interfacehasanumberofstandardcontrols,suchasbuttons,menus,scrollbars,andlists,thatarealreadyfamiliartoWindowsusers.Withthisinmind,theprogrammermustchooseasetofcontrolsanddecidehowtheyshouldbearrangedonscreen.Atime-honoredprocedureistomakearoughsketchoftheproposeduserinterfac
8、e(bytraditiononanapkinorthebackofanenvelope)andplaywiththeelementsuntilthey