Post by EBPost by Arman SahakyanPost by EBI have an IAccessible object which is being implemented by a rich edit
windowless control.
WindowFromAccessibleObject() returns the rich edit container window.
Is their any way of getting the rich edit object from the IAccessible
object ?
The API of getting HWND from IAccessible is WindowFromAccessibleObject.
There is no methods in IAccessible interface that returns the HWND (as far as
I could see)... What exactly do you want to do?
--
=====
Arman
An internal error has occured while showing an internal error!
-- eclipse
Thanks for the reply.
The application consists of a container window and several windowless
rich edit controls.
Some of the rich edit controls supports accessible objects.
I have a reference to all of the accessible objects available.
Is there a way to map the rich edit windowless object (ITextServices)
and its corresponding IAccessible object as pairs ?
So why not to query interface? You might do QueryInterface for each
IAccessible to get the corresponding ITextServices interface. Afterwords, you
can store the pair in a map for later use (if this makes sense);
std::map<IAccessible *, ITextServices *> pairs;
--
=====
Arman
An internal error has occured while showing an internal error!
-- eclipse