Clicking a XTPToolbar button |
Post Reply |
Author | |
KWSM
Newbie Joined: 09 December 2010 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 09 December 2010 at 11:01am |
We're working on a integration between a foreground application we wrote, and a background application written by a 3rd party, using the XTPToolbar controls. We need to be able to read the status of buttons in a band on the toolbar, and be able to click the same buttons. We're referencing only one band in the application, and 3 buttons.
Previos versions of the application we're integrating against used standard common control toolbars, so we're currently using a loop with a TB_BUTTONCOUNT message to get the button count, iterating over the buttons using a TB_GETBUTTON message for each button, then saving the handles of the 3 buttons we need to be able to send TB_GETSTATE messages to get their up/down state, and WM_COMMAND messages to click the buttons. Since the TM_BUTTONCOUNT message always returns zero when we send the message to the XTPToolbar bands, we don't have a way to get to the buttons.
Thoughts? Anything will help me greatly.
Thank you!
Keith
|
|
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 |