Home > Software engineering >  The general property page dialog box has a constructor is not running
The general property page dialog box has a constructor is not running

Time:01-09

The general property page dialog box has a constructor doesn't run is how to return a responsibility? Can normal open the general property page dialog box;

Is something wrong with my program? Or was it?

 CDlgSys: : CDlgSys (UINT nIDCaption, CWnd * pParentWnd, UINT iSelectPage) 
: CPropertySheet (nIDCaption pParentWnd, iSelectPage)//this constructor is not running, in breaking point can't stop this function can be run in this I comment him

CDlgSysConfig: : CDlgSysConfig (LPCTSTR pszCaption, CWnd * pParentWnd, UINT iSelectPage)//only run the
: CPropertySheet (pszCaption pParentWnd, iSelectPage)

CodePudding user response:

CPropertySheet: : CPropertySheet
CPropertySheet ();

CPropertySheet (UINT nIDCaption, CWnd * pParentWnd=NULL, UINT iSelectPage=0).

CPropertySheet (LPCTSTR pszCaption, CWnd * pParentWnd=NULL, UINT iSelectPage=0).

The Parameters

NIDCaption

The ID of the caption to be 2 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. The

ISelectPage

The index of The page that will initially be on top. The Default is The first page added to The sheet.

PszCaption

Points to a string containing the caption to be 2 for the property sheet. Always be NULL.

Few

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 the Construct home CPropertySheet.

CodePudding user response:

No problem, only run a constructor
  • Related