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)
|
static HRESULT WINAPI Client_OleWindow_GetWindow(IOleWindow *iface, HWND *phwnd)
|
||||||
{
|
{
|
||||||
Client *This = impl_from_Client_OleWindow(iface);
|
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)
|
static HRESULT WINAPI Client_OleWindow_ContextSensitiveHelp(IOleWindow *iface, BOOL fEnterMode)
|
||||||
|
@ -384,7 +384,7 @@ static void test_default_client_accessible_object(void)
|
|||||||
IAccessible *acc;
|
IAccessible *acc;
|
||||||
IDispatch *disp;
|
IDispatch *disp;
|
||||||
IOleWindow *ow;
|
IOleWindow *ow;
|
||||||
HWND chld, hwnd;
|
HWND chld, hwnd, hwnd2;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
VARIANT vid, v;
|
VARIANT vid, v;
|
||||||
BSTR str;
|
BSTR str;
|
||||||
@ -407,6 +407,9 @@ static void test_default_client_accessible_object(void)
|
|||||||
|
|
||||||
hr = IAccessible_QueryInterface(acc, &IID_IOleWindow, (void**)&ow);
|
hr = IAccessible_QueryInterface(acc, &IID_IOleWindow, (void**)&ow);
|
||||||
ok(hr == S_OK, "got %x\n", hr);
|
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);
|
IOleWindow_Release(ow);
|
||||||
|
|
||||||
hr = IAccessible_get_accChildCount(acc, &l);
|
hr = IAccessible_get_accChildCount(acc, &l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user