mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
- 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:
parent
ff1322e0a3
commit
2be4bec4f1
1 changed files with 12 additions and 7 deletions
|
@ -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 ;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue