Added a testing implementation of IAccessible::get_accName().
This commit is contained in:
parent
45a2b6b731
commit
9551bbe4f0
|
@ -96,8 +96,17 @@ static HRESULT STDMETHODCALLTYPE tableAccget_accChild(IAccessible *this, VARIANT
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE tableAccget_accName(IAccessible *this, VARIANT varChild, BSTR *pszName)
|
static HRESULT STDMETHODCALLTYPE tableAccget_accName(IAccessible *this, VARIANT varChild, BSTR *pszName)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO check pointer
|
||||||
return DISP_E_MEMBERNOTFOUND;
|
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)
|
static HRESULT STDMETHODCALLTYPE tableAccget_accValue(IAccessible *this, VARIANT varChild, BSTR *pszValue)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <vssym32.h>
|
#include <vssym32.h>
|
||||||
#include <oleacc.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
|
// TODO
|
||||||
// - should tablePanic be CALLBACK or some other equivalent macro? and definitely export initTable somehow, but which alias macro to use?
|
// - should tablePanic be CALLBACK or some other equivalent macro? and definitely export initTable somehow, but which alias macro to use?
|
||||||
|
|
Loading…
Reference in New Issue