PropSheet_SetCurSelByID

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

At a Glance

Header file: Prsht.h
Windows CE versions: 1.0 and later
Related message: PSM_SETCURSELID

Syntax

BOOL PropSheet_SetCurSelByID( hPropSheetDlg, id );

Parameters

hPropSheetDlg

Handle to the property sheet.

id

Resource identifier of the page to activate.

Return Values

TRUE indicates success. FALSE indicates failure.

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.