@@ -36,13 +36,13 @@ bool AppWindow::ConfigureAndExecuteFind(const std::wstring& searchTerm)
3636 CHECK_FAILURE(findConfiguration->put_ShouldMatchWord(false));
3737 CHECK_FAILURE(findConfiguration->put_FindDirection(COREWEBVIEW2_FIND_DIRECTION_FORWARD));
3838
39- // Query for the ICoreWebView217 interface to access the Find feature.
40- auto webView217 = m_webView.try_query<ICoreWebView217 >();
41- CHECK_FEATURE_RETURN(webView217 );
39+ // Query for the ICoreWebView2_17 interface to access the Find feature.
40+ auto webView2_17 = m_webView.try_query<ICoreWebView2_17 >();
41+ CHECK_FEATURE_RETURN(webView2_17 );
4242
4343 // Get the Find interface.
4444 wil::com_ptr<ICoreWebView2Find> webView2find;
45- CHECK_FAILURE(webView217 ->get_Find(&webView2find));
45+ CHECK_FAILURE(webView2_17 ->get_Find(&webView2find));
4646
4747 // Determine if custom UI will be usedsettings and highlight configurations.
4848
@@ -132,10 +132,10 @@ within a WebView2 control, developers can utilize the `GetMatchCount` method.
132132 // ! [GetMatchCount]
133133 bool AppWindow::GetMatchCount ()
134134 {
135- auto webView217 = m_webView.try_query<ICoreWebView217 >();
136- CHECK_FEATURE_RETURN (webView217 );
135+ auto webView2_17 = m_webView.try_query<ICoreWebView2_17 >();
136+ CHECK_FEATURE_RETURN (webView2_17 );
137137 wil::com_ptr<ICoreWebView2Find > webView2find;
138- CHECK_FAILURE(webView217 ->get_Find(&webView2find));
138+ CHECK_FAILURE(webView2_17 ->get_Find(&webView2find));
139139 LONG matchCount;
140140 CHECK_FAILURE(webView2find->get_MatchesCount(&matchCount));
141141
@@ -220,10 +220,10 @@ within a WebView2 control using the `GetActiveMatchIndex` method.
220220 // ! [GetActiveMatchIndex]
221221 bool AppWindow::GetActiveMatchIndex ()
222222 {
223- auto webView217 = m_webView.try_query<ICoreWebView217 >();
224- CHECK_FEATURE_RETURN (webView217 );
223+ auto webView2_17 = m_webView.try_query<ICoreWebView2_17 >();
224+ CHECK_FEATURE_RETURN (webView2_17 );
225225 wil::com_ptr<ICoreWebView2Find > webView2find;
226- CHECK_FAILURE(webView217 ->get_Find(&webView2find));
226+ CHECK_FAILURE(webView2_17 ->get_Find(&webView2find));
227227 LONG activeMatchIndex;
228228 CHECK_FAILURE(webView2find->get_ActiveMatchIndex(&activeMatchIndex));
229229
0 commit comments