diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-25 09:53:45 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-25 09:53:45 -0500 |
| commit | 9551bbe4f031d63761132147d81b073149528357 (patch) | |
| tree | f58f30d1913c465714ac4387ca60c8d2a21824aa | |
| parent | 45a2b6b7315349b0611cae3b6623321ca256e6b2 (diff) | |
Added a testing implementation of IAccessible::get_accName().
| -rw-r--r-- | wintable/new/accessibility.h | 13 | ||||
| -rw-r--r-- | wintable/new/main.c | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/wintable/new/accessibility.h b/wintable/new/accessibility.h index a676a09..3148df9 100644 --- a/wintable/new/accessibility.h +++ b/wintable/new/accessibility.h @@ -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) diff --git a/wintable/new/main.c b/wintable/new/main.c index ae8d314..c5a8346 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -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? |
