PropSheet_HwndToIndex macro (prsht.h)

Takes a window handle of the property sheet page and returns its zero-based index. You can use this macro or send the PSM_HWNDTOINDEX message explicitly.

Syntax

int PropSheet_HwndToIndex(
   HWND hDlg,
   HWND hwnd
);

Parameters

hDlg

Type: HWND

Handle to the property sheet's window.

hwnd

Type: HWND

Handle to the page's window.

Return value

Type: int

Returns the zero-based index of the property sheet page specified by hwnd if successful. Otherwise, it returns -1.

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

See also

GetParent

Other Resources

PropSheet_GetCurrentPageHwnd

Reference