| 483 | } |
| 484 | |
| 485 | SItemPanel *STileView::HitTest(CPoint &pt) |
| 486 | { |
| 487 | SPOSITION pos = m_lstItems.GetHeadPosition(); |
| 488 | while(pos) |
| 489 | { |
| 490 | ItemInfo ii = m_lstItems.GetNext(pos); |
| 491 | CRect rcItem = ii.pItem->GetItemRect(); |
| 492 | if(rcItem.PtInRect(pt)) |
| 493 | { |
| 494 | pt -= rcItem.TopLeft(); |
| 495 | return ii.pItem; |
| 496 | } |
| 497 | } |
| 498 | return NULL; |
| 499 | } |
| 500 | |
| 501 | LRESULT STileView::OnMouseEvent(UINT uMsg, WPARAM wParam, LPARAM lParam) |
| 502 | { |
nothing calls this directly
no test coverage detected