Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
3.6 KiB

  1. //****************************************************************************
  2. //
  3. // Copyright (c) 2001-2002, Microsoft Corporation
  4. //
  5. // File: AccessibleWrapper.H
  6. //
  7. // Copied from nt\shell\themes\themeui\SettingsPg.h
  8. //
  9. //****************************************************************************
  10. #ifndef _ACCESSIBLE_WRAPPER_H_
  11. #define _ACCESSIBLE_WRAPPER_H_
  12. #include <oleacc.h>
  13. class CAccessibleWrapper: public IAccessible
  14. {
  15. // We need to do our own refcounting for this wrapper object
  16. ULONG m_ref;
  17. // Need ptr to the IAccessible
  18. IAccessible * m_pAcc;
  19. HWND m_hwnd;
  20. public:
  21. CAccessibleWrapper( HWND hwnd, IAccessible * pAcc);
  22. virtual ~CAccessibleWrapper();
  23. // IUnknown
  24. // (We do our own ref counting)
  25. virtual STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
  26. virtual STDMETHODIMP_(ULONG) AddRef();
  27. virtual STDMETHODIMP_(ULONG) Release();
  28. // IDispatch
  29. virtual STDMETHODIMP GetTypeInfoCount(UINT* pctinfo);
  30. virtual STDMETHODIMP GetTypeInfo(UINT itinfo, LCID lcid, ITypeInfo** pptinfo);
  31. virtual STDMETHODIMP GetIDsOfNames(REFIID riid, OLECHAR** rgszNames, UINT cNames,
  32. LCID lcid, DISPID* rgdispid);
  33. virtual STDMETHODIMP Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,
  34. DISPPARAMS* pdispparams, VARIANT* pvarResult, EXCEPINFO* pexcepinfo,
  35. UINT* puArgErr);
  36. // IAccessible
  37. virtual STDMETHODIMP get_accParent(IDispatch ** ppdispParent);
  38. virtual STDMETHODIMP get_accChildCount(long* pChildCount);
  39. virtual STDMETHODIMP get_accChild(VARIANT varChild, IDispatch ** ppdispChild);
  40. virtual STDMETHODIMP get_accName(VARIANT varChild, BSTR* pszName);
  41. virtual STDMETHODIMP get_accValue(VARIANT varChild, BSTR* pszValue);
  42. virtual STDMETHODIMP get_accDescription(VARIANT varChild, BSTR* pszDescription);
  43. virtual STDMETHODIMP get_accRole(VARIANT varChild, VARIANT *pvarRole);
  44. virtual STDMETHODIMP get_accState(VARIANT varChild, VARIANT *pvarState);
  45. virtual STDMETHODIMP get_accHelp(VARIANT varChild, BSTR* pszHelp);
  46. virtual STDMETHODIMP get_accHelpTopic(BSTR* pszHelpFile, VARIANT varChild, long* pidTopic);
  47. virtual STDMETHODIMP get_accKeyboardShortcut(VARIANT varChild, BSTR* pszKeyboardShortcut);
  48. virtual STDMETHODIMP get_accFocus(VARIANT * pvarFocusChild);
  49. virtual STDMETHODIMP get_accSelection(VARIANT * pvarSelectedChildren);
  50. virtual STDMETHODIMP get_accDefaultAction(VARIANT varChild, BSTR* pszDefaultAction);
  51. virtual STDMETHODIMP accSelect(long flagsSel, VARIANT varChild);
  52. virtual STDMETHODIMP accLocation(long* pxLeft, long* pyTop, long* pcxWidth, long* pcyHeight, VARIANT varChild);
  53. virtual STDMETHODIMP accNavigate(long navDir, VARIANT varStart, VARIANT * pvarEndUpAt);
  54. virtual STDMETHODIMP accHitTest(long xLeft, long yTop, VARIANT * pvarChildAtPoint);
  55. virtual STDMETHODIMP accDoDefaultAction(VARIANT varChild);
  56. virtual STDMETHODIMP put_accName(VARIANT varChild, BSTR szName);
  57. virtual STDMETHODIMP put_accValue(VARIANT varChild, BSTR pszValue);
  58. };
  59. #endif _ACCESSIBLE_WRAPPER_H_