@@ -44,7 +44,7 @@ wil::com_ptr<ICoreWebView2FindConfiguration> AppWindow::InitializeFindConfigurat
44
44
45
45
// Get the Find interface.
46
46
wil::com_ptr<ICoreWebView2Find> webView2Find;
47
- CHECK_FAILURE(webView2_17->get_Find(&webView2find ));
47
+ CHECK_FAILURE(webView2_17->get_Find(&webView2Find ));
48
48
49
49
return findConfiguration;
50
50
}
@@ -113,11 +113,11 @@ bool AppWindow::ExecuteFindWithCustomUI(const std::wstring& searchTerm)
113
113
CHECK_FAILURE(webView2_17->get_Find(&webView2Find));
114
114
115
115
// Opt for using a custom UI for the find operation.
116
- CHECK_FAILURE(webView2find ->put_UseCustomUI(true));
116
+ CHECK_FAILURE(webView2Find ->put_UseCustomUI(true));
117
117
CHECK_FAILURE(webView2find->put_ShouldHighlightAllMatches(true));
118
118
119
119
// Start the find operation with callback for completion.
120
- CHECK_FAILURE(webView2find ->StartFind(
120
+ CHECK_FAILURE(webView2Find ->StartFind(
121
121
findConfiguration.get(),
122
122
Callback<ICoreWebView2FindOperationCompletedHandler>(
123
123
[this](HRESULT result, BOOL status) -> HRESULT
@@ -236,9 +236,9 @@ within a WebView2 control using the `GetActiveMatchIndex` method.
236
236
auto webView2_17 = m_webView.try_query<ICoreWebView2_17>();
237
237
CHECK_FEATURE_RETURN (webView2_17);
238
238
wil::com_ptr<ICoreWebView2Find > webView2find;
239
- CHECK_FAILURE(webView2_17->get_Find(&webView2find ));
239
+ CHECK_FAILURE(webView2_17->get_Find(&webView2Find ));
240
240
LONG activeMatchIndex;
241
- CHECK_FAILURE(webView2find ->get_ActiveMatchIndex(&activeMatchIndex));
241
+ CHECK_FAILURE(webView2Find ->get_ActiveMatchIndex(&activeMatchIndex));
242
242
243
243
// Update UI or handle activeMatchIndex as you wish
244
244
// For example, you could show a message box
0 commit comments