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

BOOL PropSheet_PressButton(
   HWND hDlg,
   int  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

Type: BOOL

No return value.

Requirements

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