Fix for #82708 - Using Find doesn't alert user when completed searching

r=adamlock, sr=rpotts
This commit is contained in:
chak%netscape.com 2001-11-21 23:11:36 +00:00
parent e3560ba177
commit 6d588a866c
3 changed files with 9 additions and 1 deletions

View File

@ -947,7 +947,13 @@ LRESULT CBrowserView::OnFindMsg(WPARAM wParam, LPARAM lParam)
PRBool didFind;
nsresult rv = finder->FindNext(&didFind);
return (NS_SUCCEEDED(rv) && didFind);
if(!didFind)
{
AfxMessageBox(IDS_SRCH_STR_NOT_FOUND);
dlg->SetFocus();
}
return (NS_SUCCEEDED(rv) && didFind);
}
return 0;

View File

@ -459,6 +459,7 @@ BEGIN
IDS_ENCRYPTION_HIGH_GRADE "High-grade Encryption (%1% %2!d! bit)"
IDS_ENCRYPTION_LOW_GRADE "Low-grade Encryption (%1% %2!d! bit)"
IDS_ENCRYPTION_NONE "Connection Not Encrypted"
IDS_SRCH_STR_NOT_FOUND "The text you entered was not found"
END
STRINGTABLE PRELOAD DISCARDABLE

View File

@ -25,6 +25,7 @@
#define IDS_ENCRYPTION_HIGH_GRADE 147
#define IDS_ENCRYPTION_LOW_GRADE 148
#define IDS_ENCRYPTION_NONE 149
#define IDS_SRCH_STR_NOT_FOUND 150
#define ID_URL_BAR 1001
#define ID_PROG_BAR 1002
#define IDC_PROMPT_ANSWER 1003