PropSheet_EnableWizButtons macro (prsht.h)

Enables or disables buttons in an Aero wizard. You can use this macro or send the PSM_ENABLEWIZBUTTONS message explicitly.

Syntax

void PropSheet_EnableWizButtons(
   hDlg,
   dwState,
   dwMask
);

Parameters

hDlg

Type: HWND

Handle to the wizard.

dwState

Type: DWORD

One or more of the following values that specify which property sheet buttons are to be enabled. If a button value is included in both this parameter and dwMask, it is enabled.

Value Meaning
PSWIZB_BACK
0x0001. The Back button.
PSWIZB_NEXT
0x0002. The Next button.
PSWIZB_FINISH
0x0004. The Finish button.
PSWIZB_CANCEL
0x0010. The Cancel button.

dwMask

Type: DWORD

One or more of the same values used in dwState, specifying which buttons are affected by this call. If a button value appears in this parameter but not in dwState, the button is disabled.

Return value

None

Remarks

The following example code enables the Back button and disables the Next button.

PropSheet_EnableWizButtons(hwnd,
                         PSWIZB_NEXT,
                         PSWIZB_BACK | PSWIZB_NEXT);

Requirements

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