- Return focus to run dialog after showing the file not found messagebox. Patch by brbak <mpd000@yahoo.de>

svn path=/trunk/; revision=18015
This commit is contained in:
Alex Ionescu 2005-09-23 15:42:40 +00:00
parent ff1322e0a3
commit 2be4bec4f1

View file

@ -162,6 +162,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
HeapFree(GetProcessHeap(), 0, psz);
SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
SetFocus(htxt);
return TRUE ;
}
FillList (htxt, psz) ;
@ -217,15 +218,19 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
return TRUE ;
}
ofnProc (&ofn) ;
SetFocus (GetDlgItem (hwnd, IDOK)) ;
SetWindowTextA (GetDlgItem (hwnd, 12298), szFName) ;
SendMessageA (GetDlgItem (hwnd, 12298), CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
SetFocus (GetDlgItem (hwnd, IDOK)) ;
if(ofnProc (&ofn))
{
SetFocus (GetDlgItem (hwnd, IDOK)) ;
SetWindowTextA (GetDlgItem (hwnd, 12298), szFName) ;
SendMessageA (GetDlgItem (hwnd, 12298), CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
SetFocus (GetDlgItem (hwnd, IDOK)) ;
}
else
{
SetFocus(GetDlgItem(hwnd, 12288));
}
FreeLibrary (hComdlg) ;
return TRUE ;
}
}