Discussion:
Get windowless object from IAccessible
(too old to reply)
EB
2007-07-29 16:12:53 UTC
Permalink
I 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 ?

Thanks,
EB.
Arman Sahakyan
2007-07-30 07:34:01 UTC
Permalink
Post by EB
I 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
EB
2007-07-30 09:59:33 UTC
Permalink
Post by Arman Sahakyan
Post by EB
I 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 ?

Thanks,
EB.
Arman Sahakyan
2007-07-30 12:34:01 UTC
Permalink
Post by EB
Post by Arman Sahakyan
Post by EB
I 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
EB
2007-07-30 13:34:46 UTC
Permalink
Post by Arman Sahakyan
Post by EB
Post by Arman Sahakyan
Post by EB
I 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- Hide quoted text -
- Show quoted text -
Hi Arman,
Tried that already with no success, the two interfaces are not
implemented in the same object.

EB.

Loading...