PropSheet_SetButtonText macro (prsht.h)

Sets the text of a button in an Aero wizard. You can use this macro or send the PSM_SETBUTTONTEXT message explicitly.

Syntax

VOID PropSheet_SetButtonText(
   HWND    hDlg,
   DWORD   dwButton,
   LPCTSTR lpszText
);

Parameters

hDlg

Type: HWND

Handle to the wizard.

dwButton

Type: DWORD

One of the following values specifying the button whose text is set.

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.

lpszText

Type: LPCTSTR

The text to set.

Return value

Type: VOID

No return value.

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