一般屬性頁對話框有個建構式不運行是怎么回事?能正常打開一般屬性頁對話框;
是我程式出問題了?還是本來就這樣?
CDlgSys::CDlgSys(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage) //這個建構式不運行,在這函式打斷點無法停在這我把他注釋了都能運行
CDlgSysConfig::CDlgSysConfig(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)//只運行這個
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
uj5u.com熱心網友回復:
CPropertySheet::CPropertySheetCPropertySheet( );
CPropertySheet( UINT nIDCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0 );
CPropertySheet( LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0 );
Parameters
nIDCaption
ID of the caption to be used for the property sheet.
pParentWnd
Points to the parent window of the property sheet. If NULL, the parent window will be the main window of the application.
iSelectPage
The index of the page that will initially be on top. Default is the first page added to the sheet.
pszCaption
Points to a string containing the caption to be used for the property sheet. Cannot be NULL.
Remarks
Use this member function to construct a CPropertySheet object. To display the property sheet, call DoModal or Create. The string contained in the first parameter will be placed in the caption bar for the property sheet.
If you have multiple parameters (for example, if you are using an array), use Construct instead of CPropertySheet.
uj5u.com熱心網友回復:
沒毛病啊,只運行一個建構式轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/246305.html
標籤:基礎類
上一篇:關于專案打包安裝包的問題
下一篇:求助,為MFC程式添加代理
