mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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);
|
HeapFree(GetProcessHeap(), 0, psz);
|
||||||
SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
|
SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
|
||||||
|
SetFocus(htxt);
|
||||||
return TRUE ;
|
return TRUE ;
|
||||||
}
|
}
|
||||||
FillList (htxt, psz) ;
|
FillList (htxt, psz) ;
|
||||||
|
@ -217,15 +218,19 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
|
||||||
return TRUE ;
|
return TRUE ;
|
||||||
}
|
}
|
||||||
|
|
||||||
ofnProc (&ofn) ;
|
if(ofnProc (&ofn))
|
||||||
|
{
|
||||||
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
||||||
SetWindowTextA (GetDlgItem (hwnd, 12298), szFName) ;
|
SetWindowTextA (GetDlgItem (hwnd, 12298), szFName) ;
|
||||||
SendMessageA (GetDlgItem (hwnd, 12298), CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
|
SendMessageA (GetDlgItem (hwnd, 12298), CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
|
||||||
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetFocus(GetDlgItem(hwnd, 12288));
|
||||||
|
}
|
||||||
|
|
||||||
FreeLibrary (hComdlg) ;
|
FreeLibrary (hComdlg) ;
|
||||||
|
|
||||||
return TRUE ;
|
return TRUE ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue