PropSheet_PageToIndex macro (prsht.h)
Takes the HPROPSHEETPAGE handle of a property sheet page and returns its zero-based index. You can use this macro or send the PSM_PAGETOINDEX message explicitly.
C++
int PropSheet_PageToIndex(
HWND hDlg,
HPROPSHEETPAGE hpage
);
hDlg
Type: HWND
Handle to the property sheet.
hpage
Type: HPROPSHEETPAGE
HPROPSHEETPAGE handle to the property sheet page.
Type: int
Returns the zero-based index of the property sheet page specified by hpage if successful. Otherwise, it returns -1.
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 |
Reference