CPropertySheet、CPropertyPage类.doc_第1页
CPropertySheet、CPropertyPage类.doc_第2页
CPropertySheet、CPropertyPage类.doc_第3页
CPropertySheet、CPropertyPage类.doc_第4页
CPropertySheet、CPropertyPage类.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

MFC 学习笔记CProPertyPage 类Represents individual pages of a property sheet, otherwise known as a tab dialog box. class CPropertyPage : public CDialogm_psp is a structure whose members store the characteristics of PROPSHEETPAGE.PROPSHEETPAGE m_psp;Retrieves the Windows PROPSHEETPAGE structure associated with the CPropertyPage object.const PROPSHEETPAGE & GetPSP( ) const;PROPSHEETPAGE & GetPSP( );Call this function after an unrecoverable change has been made to the data in a page of a modal property sheet.void CancelToClose( );Call this member function to forward a message to each page in the property sheet.LRESULT QuerySiblings( WPARAM wParam, LPARAM lParam );Call this member function to enable or disable the Apply Now button, based on whether the settings in the property page should be applied to the appropriate external object.void SetModified( BOOL bChanged = TRUE );This member function is called by the framework when the page is no longer the active page.virtual BOOL OnKillActive( );This member function is called by the framework when the user clicks the Cancel button and before the cancel action has taken place.virtual BOOL OnQueryCancel( );This member function is called by the framework when the page is chosen by the user and becomes the active page.virtual BOOL OnSetActive( );This member function is called by the framework when the user clicks on the Back button in a wizard.virtual LRESULT OnWizardBack();This member function is called by the framework when the user clicks on the Finish button in a wizard.virtual BOOL OnWizardFinish( );This member function is called by the framework when the user clicks on the Next button in a wizard.virtual LRESULT OnWizardNext();CProPertySheet 类Represents property sheets, also known as tab dialog boxes. class CPropertySheet : public CWndIndicates whether to stack rows of tabs in a property sheet.void EnableStackedTabs( BOOL bStacked );Gets the index number of the property sheet windows active page and then uses the returned index number as the parameter for GetP GetActiveIndex( ) const;Retrieves the property sheet windows active page.CPropertyPage* GetActivePage( ) const;Returns a pointer to the specified page in this property sheet.CPropertyPage* GetPage( int nPage ) const;Determines the number of pages currently in the property GetPageCount( ) const;Retrieves the index number of the specified page in the property GetPageIndex( CPropertyPage* pPage );Retrieves a pointer to a tab control to do something specific to the tab control (that is, to use any of the APIs in CTabCtrl).CTabCtrl* GetTabControl( ) const;Changes the active page.BOOL SetActivePage( int nPage );BOOL SetActivePage( CPropertyPage* pPage );Sets the text in the Finish command button.void SetFinishText( LPCTSTR lpszText );Specifies the property sheets caption (the text displayed in the title bar of a frame window).void SetTitle( LPCTSTR lpszText, UINT nStyle = 0 );Enables or disables the Back, Next, or Finish button in a wizard property sheet.void SetWizardButtons( DWORD dwFlags );Establishes a property page as a wizard.void SetWizardMode( );Adds the supplied page with the rightmost tab in the property sheet.void AddPage( CPropertyPage *pPage );Displays a modeless property sheet.virtual BOOL Create( CWnd* pParentWnd = NULL, DWORD dwStyle = (DWORD)1, DWORD dwExStyle = 0 );Displays a modal property sheet.virtual INT_PTR DoModal();Terminates the propert

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论