PropSheet_SetCurSel  1X8K7BE 

The PropSheet_SetCurSel macro activates the given page in a property sheet. You can use this macro or explicitly send the PSM_SETCURSEL12JSL.. message.

BOOL PropSheet_SetCurSel(

    hPropSheetDlg,

 

    hpage,

 

    index

 

   );

 

 

Parameters

hPropSheetDlg

Handle to the property sheet.

hpage and index

Handle to the page to activate, and the zero-based index of the page to activate. An application can specify the handle or the index, or both. If both are specified, hpage takes precedence.

 

Return Values

Returns TRUE if successful or FALSE otherwise.

Remarks

The window that is losing the activation receives the PSN_KILLACTIVE notification message, and the window that is gaining the activation receives the PSN_SETACTIVE notification message.

See Also

PSM_SETCURSEL, PSN_KILLACTIVE, PSN_SETACTIVE