// get the control rect in our client coords
wxControl *control = tool->GetControl();
wxRect rectCtrl = control->GetRect();
- control->ClientToScreen(&rectCtrl.x, &rectCtrl.y);
- ScreenToClient(&rectCtrl.x, &rectCtrl.y);
// iterate over all buttons
TBBUTTON tbb;