资源描述:
《visualc_mfc简要介绍英文原文以及翻译》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、计算机专业毕业设计外文翻译VisualC++MFC简要介绍工学部工学一部专业计算机科学与技术班级4418101学号200413181038姓名张为指导教师史俊负责教师沈阳航空工业学院北方科技学院2008年7月沈阳航空工业学院北方科技学院毕业设计(外文翻译)IntroductiontoMFCProgrammingwithVisualC++Version6.xbyMarshallBrainVisualC++ismuchmorethanacompiler.Itisacompleteapplicationde
2、velopmentenvironmentthat,whenusedasintended,letsyoufullyexploittheobjectorientednatureofC++tocreateprofessionalWindowsapplications.Inordertotakeadvantageofthesefeatures,youneedtounderstandtheC++programminglanguage.IfyouhaveneverusedC++,pleaseturntotheC+
3、+tutorialsintheC/C++Tutorialspageforanintroduction.YoumustthenunderstandtheMicrosoftFoundationClass(MFC)hierarchy.ThisclasshierarchyencapsulatestheuserinterfaceportionoftheWindowsAPI,andmakesitsignificantlyeasiertocreateWindowsapplicationsinanobjectorie
4、ntedway.ThishierarchyisavailableforandcompatiblewithallversionsofWindows.ThecodeyoucreateinMFCisextremelyportable.ThesetutorialsintroducethefundamentalconceptsandvocabularybehindMFCandeventdrivenprogramming.Inthistutorialyouwillenter,compile,andrunasimp
5、leMFCprogramusingVisualC++.Tutotial2providesadetailedexplanationofthecodeusedinTutorial1.Tutorial3discussesMFCcontrolsandtheircustomization.Tutorial4coversmessagemaps,whichletyouhandleeventsinMFC.WhatistheMicrosoftFoundationsClassLibrary?Let'ssayyouwant
6、tocreateaWindowsapplication.Youmight,forexample,needtocreateaspecializedtextordrawingeditor,oraprogramthatfindsfilesonalargeharddisk,oranapplicationthatletsauservisualizetheinterrelationshipsinabigdataset.Wheredoyoubegin?Agoodstartingplaceisthedesignoft
7、heuserinterface.First,decidewhattheusershouldbeabletodowiththeprogramandthenpickasetofuserinterfaceobjectsaccordingly.TheWindowsuserinterfacehasanumberofstandardcontrols,suchasbuttons,menus,scrollbars,andlists,thatarealreadyfamiliartoWindowsusers.Withth
8、isinmind,theprogrammermustchooseasetofcontrolsanddecidehowtheyshouldbearrangedonscreen.Atime-honoredprocedureistomakearoughsketchoftheproposeduserinterface(bytraditiononanapkinorthebackofanenvelope)andplaywiththeelementsuntilthey