资源描述:
《vc第1章vc编程基础》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、VC卄第1章VC++编程基础Thisarticleiscontributedbybbbyyy22PptdocumentsmayexperiencepoorbrowsingontheWAPside・ItisrecommendedthatyoufirstselectTXT,ordownloadthesourcefiletothelocalview.FirstchaptersC++programmingfoundation,VisualC++programmingbasicsTeachingtargetUnderstandthebasicWindowsprogrammingknowledgeof
2、WindowsprogrammingbasisandnewsprogrammingWindows:theconceptofresourcemanagement,deviceindependence,orresourcemanagement,deviceindependenceofunderstandingthebasicknowledgeoftheMFCclasstounderstandthebasicknowledgeofMFCclassMFCmasterprogramshouldbeestablishedwithaclearframeworkforMFCapplicationstruc
3、tureclearMFCapplicationstructureMFCWizardC++programming,electroniclessonplans,programming,WangMingfu,"VisualC++programming",electroniclessonplans,WangMingfuseriesContentofcoursesWindowsprogrammingconcepts,1.1Windowsprogrammingconcepts,MFCfoundation,1.2MFCfoundation,thefirstMFCMFCapplication1.3,the
4、firstMFCapplication1.4,applicationa_nalysisreturnreturnWindowsprogrammingconcepts,1.1WindowsprogrammingconceptsWindowsprogrammingisbasedoneventdriven,andtheoperationoftheprogramiscontrolledbytheoccurrenceofevents・MessagedrivenmechanismistheessenceofWindowsprogramming.The1.1.1eventandmessagewhenthe
5、userpressesabutton,movethemouseorclickthemousebutton,thecomputersystemhasnotifiedWindowsaneventhasoccurred,andtheeventtype,occurrencetimeandplace(suchascoordinates)・Eventsoccurinthreeways:bygeneratinghardwareeventssuchaskeyboardandmouse・?throughvisualobjectsonthescreen,suchasmenus,toolbars,buttons
6、,scrollbars,anddialogboxes.?fromtheWindowsinterior,forexample,whenabackwindowshowsuptothefront・TheWindowsmessageisaconstantdefinedwithmacrosintheWindows・hfile・ThemessageconstantnameisusuallyWM_XXX,forexample,WM_WUIT,W_CHAR.Forexample,whenauserclickstheleftmousebutton,theWM_LBUTT0ND0WNmessageissent
7、,andtheWMLBUTTONDBLCLKmessageissentbydoubleclicking・1.1.2messagedriverADOSprogramisacombinationofaseriesofpredefinedsequencesofoperationsthathaveabeginning,anintermediateprocess,andanend,thatis,theorderinwhichthe