Commit dd789d50 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

wordpad: Search finished message box should be modal.

parent fbd30765
...@@ -1288,8 +1288,10 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr) ...@@ -1288,8 +1288,10 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
if (ret == -1) { if (ret == -1) {
custom_data->endPos = -1; custom_data->endPos = -1;
MessageBoxWithResStringW(hMainWnd, MAKEINTRESOURCEW(STRING_SEARCH_FINISHED), EnableWindow(hMainWnd, FALSE);
wszAppTitle, MB_OK | MB_ICONASTERISK); MessageBoxWithResStringW(hFindWnd, MAKEINTRESOURCEW(STRING_SEARCH_FINISHED),
wszAppTitle, MB_OK | MB_ICONASTERISK | MB_TASKMODAL);
EnableWindow(hMainWnd, TRUE);
} else { } else {
SendMessageW(hEditorWnd, EM_SETSEL, ft.chrgText.cpMin, ft.chrgText.cpMax); SendMessageW(hEditorWnd, EM_SETSEL, ft.chrgText.cpMin, ft.chrgText.cpMax);
SendMessageW(hEditorWnd, EM_SCROLLCARET, 0, 0); SendMessageW(hEditorWnd, EM_SCROLLCARET, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment