Added a testing implementation of IAccessible::get_accName().

This commit is contained in:
Pietro Gagliardi 2014-12-25 09:53:45 -05:00
parent 45a2b6b731
commit 9551bbe4f0
2 changed files with 12 additions and 3 deletions

View File

@ -96,8 +96,17 @@ static HRESULT STDMETHODCALLTYPE tableAccget_accChild(IAccessible *this, VARIANT
static HRESULT STDMETHODCALLTYPE tableAccget_accName(IAccessible *this, VARIANT varChild, BSTR *pszName)
{
// TODO
return DISP_E_MEMBERNOTFOUND;
// TODO check pointer
if (varChild.vt != VT_I4) {
*pszName = NULL;
return E_INVALIDARG;
}
if (varChild.lVal == CHILDID_SELF)
; // TODO standard accessible object
// TODO actually get the real name
*pszName = SysAllocString("This is a test of the accessibility interface.");
// TODO check null pointer
return S_OK;
}
static HRESULT STDMETHODCALLTYPE tableAccget_accValue(IAccessible *this, VARIANT varChild, BSTR *pszValue)

View File

@ -21,7 +21,7 @@
#include <vssym32.h>
#include <oleacc.h>
// #qo LIBS: user32 kernel32 gdi32 comctl32 uxtheme ole32 oleacc uuid
// #qo LIBS: user32 kernel32 gdi32 comctl32 uxtheme ole32 oleaut32 oleacc uuid
// TODO
// - should tablePanic be CALLBACK or some other equivalent macro? and definitely export initTable somehow, but which alias macro to use?