PropSheet_SetCurSelByID

The PropSheet_SetCurSelByID macro activates the given page in a property sheet based on the resource identifier of the page. You can use this macro or explicitly send the PSM_SETCURSELID message.

BOOL PropSheet_SetCurSelByID(

hPropSheetDlg,  
id  
);  

Parameters

hPropSheetDlg

Handle to the property sheet.

id

Resource identifier of the page to activate.

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_SETCURSELID, PSN_KILLACTIVE, PSN_SETACTIVE