PropSheet_SetTitle macro (prsht.h)

Sets the title of a property sheet. You can use this macro or send the PSM_SETTITLE message explicitly.

Syntax

void PropSheet_SetTitle(
   hDlg,
   wStyle,
   lpszText
);

Parameters

hDlg

Type: HWND

Handle to the property sheet.

wStyle

Type: DWORD

Flag that indicates whether to include the prefix "Properties for" with the specified title string. If dwStyle is the PSH_PROPTITLE value, the prefix is included. Otherwise, the prefix is not used.

lpszText

Type: LPTSTR

Pointer to a buffer that contains the title string. If the HIWORD of this parameter is NULL, the property sheet loads the string resource specified in the LOWORD.

Return value

None

Remarks

In an Aero Wizard, this macro can be used to change the title of an interior page dynamically; for example, when handling the PSN_SETACTIVE notification.

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