oleacc: Add IOleWindow::GetWindow implementation in default client accessible object.
This commit is contained in:
parent
69ab9da0da
commit
25312a10d3
|
@ -471,8 +471,11 @@ static ULONG WINAPI Client_OleWindow_Release(IOleWindow *iface)
|
|||
static HRESULT WINAPI Client_OleWindow_GetWindow(IOleWindow *iface, HWND *phwnd)
|
||||
{
|
||||
Client *This = impl_from_Client_OleWindow(iface);
|
||||
FIXME("(%p)->(%p)\n", This, phwnd);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, phwnd);
|
||||
|
||||
*phwnd = This->hwnd;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI Client_OleWindow_ContextSensitiveHelp(IOleWindow *iface, BOOL fEnterMode)
|
||||
|
|
|
@ -384,7 +384,7 @@ static void test_default_client_accessible_object(void)
|
|||
IAccessible *acc;
|
||||
IDispatch *disp;
|
||||
IOleWindow *ow;
|
||||
HWND chld, hwnd;
|
||||
HWND chld, hwnd, hwnd2;
|
||||
HRESULT hr;
|
||||
VARIANT vid, v;
|
||||
BSTR str;
|
||||
|
@ -407,6 +407,9 @@ static void test_default_client_accessible_object(void)
|
|||
|
||||
hr = IAccessible_QueryInterface(acc, &IID_IOleWindow, (void**)&ow);
|
||||
ok(hr == S_OK, "got %x\n", hr);
|
||||
hr = IOleWindow_GetWindow(ow, &hwnd2);
|
||||
ok(hr == S_OK, "got %x\n", hr);
|
||||
ok(hwnd == hwnd2, "hwnd2 = %p, expected %p\n", hwnd2, hwnd);
|
||||
IOleWindow_Release(ow);
|
||||
|
||||
hr = IAccessible_get_accChildCount(acc, &l);
|
||||
|
|
Loading…
Reference in New Issue