'------------------------snippet 3 - in creating an instance ***...*** ----------------
' // Create an instance of WebView
   DIM pWebView2 AS CWebView2 = hWin
   ' // Wait until is ready
   IF pWebView2.IsReady THEN
      ' // Set a navigation handler
      DIM pEnv AS CWebView2NavigationCompletedEventHandlerImpl PTR
      pEnv = NEW CWebView2NavigationCompletedEventHandlerImpl(@pWebView2)
      ' // Set an event handler for NewWindow
      DIM pNewWindowHandler AS CWebView2NewWindowRequestedEventHandlerInternal PTR
      pNewWindowHandler = NEW CWebView2NewWindowRequestedEventHandlerInternal(@pWebView2, FALSE)
      ' // Navigate to a web page 
      ' // *********delete old https and add new <local or web> weburl= ...
      ' //pWebView2.Navigate("https://www.planetsquires.com/protect/forum/index.php")
     weburl = AfxUrlCreateFromPath(get_webrootpuri() & get_webrootpath())
      ' // *********
      pWebView2.Navigate(weburl)
      ' // Set the focus in the web page
      pWebView2.MoveFocus(COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC)
   END IF
'------------------------------------------------------------------------------