| 886 | } |
| 887 | } |
| 888 | bool CloseButtonZone::isHit(int x, int y, const RECT & testZone) const |
| 889 | { |
| 890 | if (((x + _width + _fromRight) < testZone.right) || (x > (testZone.right - _fromRight))) |
| 891 | return false; |
| 892 | |
| 893 | if (((y - _hight - _fromTop) > testZone.top) || (y < (testZone.top + _fromTop))) |
| 894 | return false; |
| 895 | |
| 896 | return true; |
| 897 | } |
| 898 | |
| 899 | RECT CloseButtonZone::getButtonRectFrom(const RECT & tabItemRect) const |
| 900 | { |