欢迎来到天天文库
浏览记录
ID:40547522
大小:28.91 KB
页数:6页
时间:2019-08-04
《CPropertySheet、CPropertyPage类》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、MFC学习笔记CProPertyPage类Representsindividualpagesofapropertysheet,otherwiseknownasatabdialogbox.classCPropertyPage:publicCDialogm_pspisastructurewhosemembersstorethecharacteristicsofPROPSHEETPAGE.PROPSHEETPAGEm_psp;RetrievestheWindowsPROPSHEETPAGEstructureass
2、ociatedwiththeCPropertyPageobject.constPROPSHEETPAGE&GetPSP()const; PROPSHEETPAGE&GetPSP();Callthisfunctionafteranunrecoverablechangehasbeenmadetothedatainapageofamodalpropertysheet.voidCancelToClose();Callthismemberfunctiontoforwardamessagetoeachpageinthe
3、propertysheet.LRESULTQuerySiblings(WPARAMwParam,LPARAMlParam);CallthismemberfunctiontoenableordisabletheApplyNowbutton,basedonwhetherthesettingsinthepropertypageshouldbeappliedtotheappropriateexternalobject.voidSetModified(BOOLbChanged=TRUE);6MFC学习笔记Thisme
4、mberfunctioniscalledbytheframeworkwhenthepageisnolongertheactivepage.virtualBOOLOnKillActive();ThismemberfunctioniscalledbytheframeworkwhentheuserclickstheCancelbuttonandbeforethecancelactionhastakenplace.virtualBOOLOnQueryCancel();Thismemberfunctioniscall
5、edbytheframeworkwhenthepageischosenbytheuserandbecomestheactivepage.virtualBOOLOnSetActive();ThismemberfunctioniscalledbytheframeworkwhentheuserclicksontheBackbuttoninawizard.virtualLRESULTOnWizardBack();Thismemberfunctioniscalledbytheframeworkwhentheuserc
6、licksontheFinishbuttoninawizard.virtualBOOLOnWizardFinish();ThismemberfunctioniscalledbytheframeworkwhentheuserclicksontheNextbuttoninawizard.virtualLRESULTOnWizardNext();CProPertySheet类Representspropertysheets,alsoknownastabdialogboxes.classCPropertySheet
7、:publicCWndIndicateswhethertostackrowsoftabsinapropertysheet.voidEnableStackedTabs(6MFC学习笔记BOOLbStacked);Getstheindexnumberofthepropertysheetwindow'sactivepageandthenusesthereturnedindexnumberastheparameterforGetPage.intGetActiveIndex()const;Retrievesthepr
8、opertysheetwindow'sactivepage.CPropertyPage*GetActivePage()const;Returnsapointertothespecifiedpageinthispropertysheet.CPropertyPage*GetPage(intnPage)const;Determinesthenumberofpagescurrentlyinthepropertysheet
此文档下载收益归作者所有