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
1 changed files with 1 additions and 1 deletions

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;
}
/***********************************************************************