The PSM_SETCURSELID message activates the given page in a property sheet based on the resource identifier of the page. You can send this message explicitly or by using the PropSheet_SetCurSelByID macro.
PSM_SETCURSELID wParam = 0; lParam = (LPARAM) (int) id;
Returns TRUE if successful or FALSE otherwise.
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.
PropSheet_SetCurSelByID, PSN_KILLACTIVE, PSN_SETACTIVE