Поделиться через


CPropertySheet::SetActivePage

Changes the active page.

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

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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

Пример

See the example for CPropertySheet::GetActivePage.

Требования

Header: afxdlgs.h

См. также

Основные понятия

CPropertySheet Class

CPropertySheet Members

Hierarchy Chart