Skip to content

Commit 4de44af

Browse files
authored
Updated Callback in StartFind and the description of the find op completed handler
1 parent d28354a commit 4de44af

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

FindOnPage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool AppWindow::ConfigureAndExecuteFind(const std::wstring& searchTerm)
5454
CHECK_FAILURE(webView2find->StartFind(
5555
findConfiguration.get(),
5656
Callback<ICoreWebView2FindOperationCompletedHandler>(
57-
[this](HRESULT result, LONG ActiveIdx, LONG MatchesCount) -> HRESULT
57+
[this](HRESULT result, BOOL status) -> HRESULT
5858
{
5959
if (SUCCEEDED(result))
6060
{
@@ -326,7 +326,8 @@ interface ICoreWebView2FindActiveMatchIndexChangedEventHandler : IUnknown {
326326
/// Handles the event that's fired when the find operation completes.
327327
[uuid(2604789D-9553-4246-8E21-B9C74EFAD04F), object, pointer_default(unique)]
328328
interface ICoreWebView2FindOperationCompletedHandler : IUnknown {
329-
/// Provides the event args when the find operation completes.
329+
/// Param1 refers to the returned code when the find operation completes.
330+
/// Param2 refers whether the find session successfully finished executing or not.
330331
HRESULT Invoke(HRESULT errorCode, BOOL status);
331332
}
332333

0 commit comments

Comments
 (0)