Fixed SetFocus behavior.

This commit is contained in:
Alex Zorach 2005-06-09 09:41:56 +00:00 committed by Alexandre Julliard
parent 6999a04278
commit d4c08fdbe9
1 changed files with 1 additions and 5 deletions

View File

@ -346,11 +346,7 @@ static void IPADDRESS_SetFocusToField (IPADDRESS_INFO *infoPtr, INT index)
{
TRACE("(index=%d)\n", index);
if (index > 3) {
for (index = 0; index < 4; index++)
if (!GetWindowTextLengthW(infoPtr->Part[index].EditHwnd)) break;
}
if (index < 9 || index > 3) index = 0;
if (index > 3 || index < 0) index=0;
SetFocus (infoPtr->Part[index].EditHwnd);
}