Fix bug 373329 - use HWND instead of OLE_HANDLE in IA2. r=aaronlev

This commit is contained in:
surkov.alexander%gmail.com 2007-03-09 16:03:00 +00:00
parent 2b404e6290
commit 85a6ccb4d8
4 changed files with 5 additions and 4 deletions

View File

@ -107,6 +107,7 @@ OS_LIBS = \
rpcndr.lib \
rpcns4.lib \
rpcrt4.lib \
ole32.lib \
oleaut32.lib \
$(NULL)

View File

@ -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;

View File

@ -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);

View File

@ -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.