PropSheet_PressButton macro (prsht.h)

Simulates the selection of a property sheet button. You can use this macro or send the PSM_PRESSBUTTON message explicitly.

Syntax

void PropSheet_PressButton(
   hDlg,
   iButton
);

Parameters

hDlg

Type: HWND

Handle to the property sheet.

iButton

Type: int

Index of the button to select. This parameter can be one of the following values:

Value Meaning
PSBTN_APPLYNOW
Selects the Apply button.
PSBTN_BACK
Selects the Back button.
PSBTN_CANCEL
Selects the Cancel button.
PSBTN_FINISH
Selects the Finish button.
PSBTN_HELP
Selects the Help button.
PSBTN_NEXT
Selects the Next button.
PSBTN_OK
Selects the OK button.

Return value

None

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header prsht.h