If GetNextDlgTabItem() cannot find any next control, return the handle

of the original control.
This commit is contained in:
Rein Klazes 2003-11-09 00:26:26 +00:00 committed by Alexandre Julliard
parent f45325e443
commit df93214a52

View file

@ -1476,7 +1476,7 @@ static HWND DIALOG_GetNextTabItem( HWND hwndMain, HWND hwndDlg, HWND hwndCtrl, B
if(!retWnd)
retWnd = DIALOG_GetNextTabItem(hwndMain,hwndMain,NULL,fPrevious );
}
return retWnd;
return retWnd ? retWnd : hwndCtrl;
}
/***********************************************************************