()
| 474 | } |
| 475 | |
| 476 | func (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 | |
| 493 | func (wv *WebView) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr { |
| 494 | switch msg { |
nothing calls this directly
no test coverage detected