John Thomson
June 19th, 2003, 10:42 AM
I have a (legacy C++) implementation of IAccessible, the interface which a Window is supposed to return in response to WM_GETOBJECT in order to support certain kinds of accessibility for disabled users. (It's also useful for automated testing.)
I want to use this to provide accessibility in a .NET UserControl (which is mostly implemented using legacy code, also).
However, the .NET support for accessibility is supposed to be done by overriding CreateAccessibilityInstance, which must return an AccessibleObject. I can't find any implementation of this that is done by means of an IAccessible, nor any alternative means of implementing accessibility.
I expect I can kludge by subclassing AccessibleObject and implementing every method to delegate to my IAccessible. No doubt, some code in the framework will then re-implement IAccessible by calling the AccessibleObject methods. So the functionality I originally provided is wrapped twice!
If anyone knows a better solution I would be very grateful.
I want to use this to provide accessibility in a .NET UserControl (which is mostly implemented using legacy code, also).
However, the .NET support for accessibility is supposed to be done by overriding CreateAccessibilityInstance, which must return an AccessibleObject. I can't find any implementation of this that is done by means of an IAccessible, nor any alternative means of implementing accessibility.
I expect I can kludge by subclassing AccessibleObject and implementing every method to delegate to my IAccessible. No doubt, some code in the framework will then re-implement IAccessible by calling the AccessibleObject methods. So the functionality I originally provided is wrapped twice!
If anyone knows a better solution I would be very grateful.