Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Value | Meaning |
---|---|
|
0x0001. The Back button. |
|
0x0002. The Next button. |
|
0x0004. The Finish button. |
|
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
Type: VOID
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
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 |