equal
deleted
inserted
replaced
43 |
43 |
44 /*virtual*/ void CaptionBar::OnLeftClick(EvtClick &ev) |
44 /*virtual*/ void CaptionBar::OnLeftClick(EvtClick &ev) |
45 { |
45 { |
46 m_moving_offset = ev.m_pt; |
46 m_moving_offset = ev.m_pt; |
47 ev.SetHandled(); |
47 ev.SetHandled(); |
48 m_ticket_moving = CaptureEventsT(this, &CaptionBar::OnCapturePressed); |
48 m_ticket_moving = CaptureEventsT(this, &CaptionBar::OnCaptureMoving); |
49 Invalidate(); |
49 Invalidate(); |
50 } |
50 } |
51 |
51 |
52 void CaptionBar::OnCapturePressed(EvtMouseOver &e) |
52 void CaptionBar::OnCaptureMoving(EvtMouseOver &e) |
53 { |
53 { |
54 if (!_left_button_down) { |
54 if (!_left_button_down) { |
55 m_ticket_moving.Release(); |
55 m_ticket_moving.Release(); |
56 |
56 |
57 EvtClick ev(Point(0, 0)); |
57 EvtClick ev(Point(0, 0)); |