mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Fix bug 373329 - use HWND instead of OLE_HANDLE in IA2. r=aaronlev
This commit is contained in:
parent
2b404e6290
commit
85a6ccb4d8
@ -107,6 +107,7 @@ OS_LIBS = \
|
||||
rpcndr.lib \
|
||||
rpcns4.lib \
|
||||
rpcrt4.lib \
|
||||
ole32.lib \
|
||||
oleaut32.lib \
|
||||
$(NULL)
|
||||
|
||||
|
@ -1199,11 +1199,11 @@ nsAccessibleWrap::get_uniqueID(long *uniqueID)
|
||||
}
|
||||
|
||||
STDMETHODIMP
|
||||
nsAccessibleWrap::get_windowHandle(OLE_HANDLE *windowHandle)
|
||||
nsAccessibleWrap::get_windowHandle(HWND *windowHandle)
|
||||
{
|
||||
void **handle = nsnull;
|
||||
if (NS_SUCCEEDED(GetOwnerWindow(handle))) {
|
||||
*windowHandle = NS_REINTERPRET_POINTER_CAST(OLE_HANDLE, *handle);
|
||||
*windowHandle = NS_REINTERPRET_POINTER_CAST(HWND, *handle);
|
||||
return S_OK;
|
||||
}
|
||||
return E_FAIL;
|
||||
|
@ -211,7 +211,7 @@ class nsAccessibleWrap : public nsAccessible,
|
||||
/* [retval][out] */ long *uniqueID);
|
||||
|
||||
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_windowHandle(
|
||||
/* [retval][out] */ OLE_HANDLE *windowHandle);
|
||||
/* [retval][out] */ HWND *windowHandle);
|
||||
|
||||
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_indexInParent(
|
||||
/* [retval][out] */ long *indexInParent);
|
||||
|
@ -324,7 +324,7 @@ interface IAccessible2 : IAccessible
|
||||
*/
|
||||
[propget] HRESULT windowHandle
|
||||
(
|
||||
[out, retval] OLE_HANDLE *windowHandle
|
||||
[out, retval] HWND *windowHandle
|
||||
);
|
||||
|
||||
/** @brief Returns the index of this object in its parent object.
|
||||
|
Loading…
x
Reference in New Issue
Block a user