[USER32] GetNextDlgGroupItem(): Remove WineSync copy-pasta (#6162)

Improve WineSync.
Addendum to 61fb8a2 (r19831).
This commit is contained in:
Serge Gautherie 2023-12-14 15:41:58 +01:00 committed by GitHub
parent 3f5fd1d09e
commit ae534e8cee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2296,25 +2296,18 @@ GetNextDlgGroupItem(
{
if (!IsChild (hDlg, hCtl)) return 0;
/* Make sure hwndCtrl is a top-level child */
}
else
{
/* No ctrl specified -> start from the beginning */
if (!(hCtl = GetWindow( hDlg, GW_CHILD ))) return 0;
/* MSDN is wrong. fPrevious does not result in the last child */
/* No ctrl specified -> start from the beginning */
if (!(hCtl = GetWindow( hDlg, GW_CHILD ))) return 0;
/* MSDN is wrong. fPrevious does not result in the last child */
/* MSDN is wrong. bPrevious does not result in the last child */
/* Maybe that first one is valid. If so then we don't want to skip it*/
if ((GetWindowLongPtrW( hCtl, GWL_STYLE ) & (WS_VISIBLE|WS_DISABLED)) == WS_VISIBLE)
{
return hCtl;
}
}
/* Always go forward around the group and list of controls; for the