Freigeben über


CPropertySheet::SetActivePage

Changes the active page.

BOOL SetActivePage(
   int nPage 
);
BOOL SetActivePage(
   CPropertyPage* pPage 
);

Parameters

  • nPage
    Index of the page to set. It must be between 0 and one less than the number of pages in the property sheet, inclusive.

  • pPage
    Points to the page to set in the property sheet. It cannot be NULL.

Return Value

Nonzero if the property sheet is activated successfully; otherwise 0.

Remarks

For example, use SetActivePage if a user's action on one page should cause another page to become the active page.

Example

See the example for CPropertySheet::GetActivePage.

Requirements

Header: afxdlgs.h

See Also

Concepts

CPropertySheet Class

CPropertySheet Members

Hierarchy Chart