| 151 | } |
| 152 | |
| 153 | void TabBar::activateAt(int index) const |
| 154 | { |
| 155 | if (getCurrentTabIndex() != index) |
| 156 | { |
| 157 | ::SendMessage(_hSelf, TCM_SETCURSEL, index, 0); |
| 158 | } |
| 159 | TBHDR nmhdr; |
| 160 | nmhdr.hdr.hwndFrom = _hSelf; |
| 161 | nmhdr.hdr.code = TCN_SELCHANGE; |
| 162 | nmhdr.hdr.idFrom = reinterpret_cast<UINT_PTR>(this); |
| 163 | nmhdr.tabOrigin = index; |
| 164 | } |
| 165 | |
| 166 | void TabBar::deletItemAt(size_t index) |
| 167 | { |
nothing calls this directly
no outgoing calls
no test coverage detected