MCPcopy Index your code
hub / github.com/lxn/walk / inPlaceActiveObjectSetFocus

Method inPlaceActiveObjectSetFocus

webview.go:476–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474}
475
476func (wv *WebView) inPlaceActiveObjectSetFocus() win.HRESULT {
477 var ret win.HRESULT
478 ret = win.S_FALSE
479 wv.withInPlaceActiveObject(func(activeObject *win.IOleInPlaceActiveObject) error {
480 var hWndActive win.HWND
481 hr := activeObject.GetWindow(&hWndActive)
482 if hr != win.S_OK {
483 return nil
484 }
485 win.SetFocus(hWndActive)
486 ret = win.S_OK
487
488 return nil
489 })
490 return ret
491}
492
493func (wv *WebView) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr {
494 switch msg {

Callers

nothing calls this directly

Calls 2

SetFocusMethod · 0.65

Tested by

no test coverage detected