The PSM_SETCURSEL message activates the given page in a property sheet. You can send this message explicitly or by using the PropSheet_SetCurSel macro.
PSM_SETCURSEL wParam = (WPARAM) (int) index; lParam = (LPARAM) (HPROPSHEETPAGE) hpage;
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.