PropSheet_HwndToIndex macro

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 hPropSheetDlg,
   HWND hPageDlg
);

Parameters

hPropSheetDlg

Type: HWND

Handle to the property sheet's window.

hPageDlg

Type: HWND

Handle to the page's window.

Return value

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Prsht.h

See also

Reference
PropSheet_GetCurrentPageHwnd
Other Resources
GetParent

 

 

Show: