資源描述:
《visualc_mfc簡要介紹英文原文以及翻譯》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
1、計算機專業(yè)畢業(yè)設計外文翻譯VisualC++MFC簡要介紹工學部工學一部專業(yè)計算機科學與技術班級4418101學號200413181038姓名張為指導教師史俊負責教師沈陽航空工業(yè)學院北方科技學院2008年7月沈陽航空工業(yè)學院北方科技學院畢業(yè)設計(外文翻譯)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