PropSheet_SetFinishText macro (prsht.h)

Sets the text of the Finish button in a wizard, shows and enables the button, and hides the Next and Back buttons. You can use this macro or send the PSM_SETFINISHTEXT message explicitly.

Syntax

void PropSheet_SetFinishText(
   hDlg,
   lpszText
);

Parameters

hDlg

Type: HWND

Window handle (HWND) of the wizard property sheet.

lpszText

Type: LPTSTR

Pointer to the new text for the Finish button.

Return value

None

Remarks

By default, the Finish button does not have a keyboard accelerator. You can create a keyboard accelerator with this macro by including an ampersand (&) in the text string that you assign to lpszText. For example, "&Finish" defines F as the accelerator key.

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