PropSheet_EnableWizButtons macro

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

Syntax


VOID PropSheet_EnableWizButtons(
  HWND hDlg,
  DWORD dwState,
  DWORD 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.

ValueMeaning
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

No meaningful return value.

Remarks

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


PropSheet_EnableWizButtons(hwnd,
                         PSWIZB_NEXT,
                         PSWIZB_BACK | PSWIZB_NEXT);

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Prsht.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft