Implemented PSM_HWNDTOINDEX.

This commit is contained in:
Robert Shearman 2004-07-12 23:48:11 +00:00 committed by Alexandre Julliard
parent 250c7c08bb
commit 0d9f93ab06
1 changed files with 12 additions and 1 deletions

View File

@ -2539,7 +2539,18 @@ static void PROPSHEET_SetHeaderSubTitleA(HWND hwndDlg, int iPageIndex, LPCSTR ps
*/
static LRESULT PROPSHEET_HwndToIndex(HWND hwndDlg, HWND hPageDlg)
{
FIXME("(%p, %p): stub\n", hwndDlg, hPageDlg);
int index;
PropSheetInfo * psInfo = (PropSheetInfo*) GetPropW(hwndDlg,
PropSheetInfoStr);
TRACE("(%p, %p)\n", hwndDlg, hPageDlg);
for (index = 0; index < psInfo->nPages; index++)
if (psInfo->proppage[index].hwndPage == hPageDlg)
return index;
WARN("%p not found\n", hPageDlg);
return -1;
}