Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Clicking a XTPToolbar button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Clicking a XTPToolbar button

 Post Reply Post Reply
Author
Message
KWSM View Drop Down
Newbie
Newbie
Avatar

Joined: 09 December 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote KWSM Quote  Post ReplyReply Direct Link To This Post Topic: Clicking a XTPToolbar button
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.191 seconds.