Using Accessibility to get "handle" of XTPToolBar |
Post Reply |
Author | |
Singlemalt
Newbie Joined: 27 July 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 27 July 2010 at 10:26pm |
Hi, new user, currently evaluating the product.
I am trying to use the Windows API method AccessibleObjectFromWindow to retrieve the XTPToolBar "handle" from an application. I found a related forum post here, that was unfortunately never brought to closure: http://forum.codejock.com/forum_posts.asp?TID=12815 The general method is as such, using Microsoft word as an example:
To use this effectively, you need to know the correct object declaration, in this case, "Word::Window". I understand that Codejock provides access to the objects via this Windows API, however I can not find documentation for which object to use here. I assume it is something like "CXTPToolBar::xyz". Does anyone know what xyz needs to be here? Maybe point me to the correct documentation? Even better, anyone have a code fragment they would be so kind to share? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You use MFC version ? Then why you just can't take pToolBar->m_hWnd ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Singlemalt
Newbie Joined: 27 July 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hi Oleg, thanks for responding. The question is the same as in the other thread I linked to. Reading back, I guess I forgot to mention that , sorry. The objective is to get the menu handle from another application that uses your toolkit.
In that other thread, you said: "You have call AccessibleObjectFromWindow for Menu window - see it in Spy++ - its window with XTPToolBar class." Spy++ does indeed show the class of the menu I am targeting is "XTPToolBar". However, in that other thread, the parameters for the call to AccessibleObjectFromWindow were not detailed, and in fact, I can not locate those details in the documentation. Thanks. |
|
Singlemalt
Newbie Joined: 27 July 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
No way to do this then, I guess?
Bummer. |
|
Singlemalt
Newbie Joined: 27 July 2010 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Bumping in case there is a solution.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |