PropSheet_SetFinishText macro

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(
   HWND   hPropSheetDlg,
   LPTSTR lpszText
);

Parameters

hPropSheetDlg

Type: HWND

Window handle (HWND) of the wizard property sheet.

lpszText

Type: LPTSTR

Pointer to the new text for the Finish button.

Return value

No return value.

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Prsht.h

 

 

Show: