mirror of
https://github.com/reactos/reactos.git
synced 2024-09-27 21:16:34 +00:00
[REGEDIT] Display search finished messagebox when using Find Next (F3) menu item (#3371)
This repeats behaviour of Windows Regedit. CORE-17368
This commit is contained in:
parent
bc90cbbb88
commit
9de8787187
|
@ -810,11 +810,8 @@ static INT_PTR CALLBACK FindDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPAR
|
||||||
return iResult;
|
return iResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FindDialog(HWND hWnd)
|
void FindNextMessageBox(HWND hWnd)
|
||||||
{
|
{
|
||||||
if (DialogBoxParamW(GetModuleHandle(NULL), MAKEINTRESOURCEW(IDD_FIND),
|
|
||||||
hWnd, FindDialogProc, 0) != 0)
|
|
||||||
{
|
|
||||||
if (!FindNext(hWnd))
|
if (!FindNext(hWnd))
|
||||||
{
|
{
|
||||||
WCHAR msg[128], caption[128];
|
WCHAR msg[128], caption[128];
|
||||||
|
@ -823,5 +820,13 @@ void FindDialog(HWND hWnd)
|
||||||
LoadStringW(hInst, IDS_APP_TITLE, caption, COUNT_OF(caption));
|
LoadStringW(hInst, IDS_APP_TITLE, caption, COUNT_OF(caption));
|
||||||
MessageBoxW(hWnd, msg, caption, MB_ICONINFORMATION);
|
MessageBoxW(hWnd, msg, caption, MB_ICONINFORMATION);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void FindDialog(HWND hWnd)
|
||||||
|
{
|
||||||
|
if (DialogBoxParamW(GetModuleHandle(NULL), MAKEINTRESOURCEW(IDD_FIND),
|
||||||
|
hWnd, FindDialogProc, 0) != 0)
|
||||||
|
{
|
||||||
|
FindNextMessageBox(hWnd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1230,7 +1230,7 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
FindDialog(hWnd);
|
FindDialog(hWnd);
|
||||||
break;
|
break;
|
||||||
case ID_EDIT_FINDNEXT:
|
case ID_EDIT_FINDNEXT:
|
||||||
FindNext(hWnd);
|
FindNextMessageBox(hWnd);
|
||||||
break;
|
break;
|
||||||
case ID_EDIT_COPYKEYNAME:
|
case ID_EDIT_COPYKEYNAME:
|
||||||
CopyKeyName(hWnd, hKeyRoot, keyPath);
|
CopyKeyName(hWnd, hKeyRoot, keyPath);
|
||||||
|
|
|
@ -103,6 +103,7 @@ extern int InfoMessageBox(HWND hWnd, UINT uType, LPCWSTR lpTitle, LPCWSTR lpMess
|
||||||
/* find.c */
|
/* find.c */
|
||||||
extern void FindDialog(HWND hWnd);
|
extern void FindDialog(HWND hWnd);
|
||||||
extern BOOL FindNext(HWND hWnd);
|
extern BOOL FindNext(HWND hWnd);
|
||||||
|
extern void FindNextMessageBox(HWND hWnd);
|
||||||
|
|
||||||
/* framewnd.c */
|
/* framewnd.c */
|
||||||
extern LRESULT CALLBACK FrameWndProc(HWND, UINT, WPARAM, LPARAM);
|
extern LRESULT CALLBACK FrameWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
|
|
Loading…
Reference in a new issue