void CTaskList::OnMouseMove(WPARAM wParam, LPARAM lParam) { CListBox::OnMouseMove(wParam, lParam); if(m_dwTimer) { POINT pt = LPARAM_TO_POINT(lParam); if(abs(pt.x - m_ptLDown.x) > s_dragSIZE.cx || abs(pt.y - m_ptLDown.y) > s_dragSIZE.cy) DoDrag(); } }
BOOL TeamsWindow::UnknownSysEventHandler( Event *event, long *r_val_p ) { BOOL message_processed = TRUE; ASSERT(event != NULL); switch (event->message) { case WM_ERASEBKGND: /* ** Lie that we have erased. */ break; case WM_SETCURSOR: SetOurCursor(); *r_val_p = TRUE; break; case WM_DROPFILES: DoDrag(event->wParam); break; case IDE_TEAMS_UPDATE_ALL_CARS: UpdateMemoryImage(); break; case IDE_TEAMS_TEAM_SELECT: ASSERT(event->wParam < GP_EXE_NUM_TEAMS); FrameActiveTeam(event->wParam); usSelectedTeam = event->wParam; if (event->lParam) { UpdateMemoryImage(); } break; default: message_processed = FALSE; break; } if (!message_processed) { message_processed = ChildWindow::UnknownSysEventHandler(event, r_val_p); } return message_processed; }
void CXySlider::OnLButtonDown(UINT /*nFlags*/, CPoint point) { SetFocus(); CRect rc = GetGripperRect(); if(rc.PtInRect(point)) { DoDrag(point); } else { DoPage(point); InstallTimer(); } }
void DoMouseDown(EventRecord *event) { int myPart; WindowPtr myWindow; Point point; myPart = FindWindow(event->where, &myWindow); switch(myPart) { case inMenuBar: DrawMenuBar(); DoMenuCommand(MenuSelect(event->where)); break; case inSysWindow: SystemClick(event, myWindow); break; case inDrag: DoDrag(myWindow, event->where); // update the vid_xpos / vid_ypos cvars point.h = 0; point.v = 0; LocalToGlobal( &point ); Cvar_SetValue( "vid_xpos", point.h ); Cvar_SetValue( "vid_ypos", point.v ); return; break; case inGoAway: DoGoAwayBox(myWindow, event->where); break; case inContent: if (myWindow != FrontWindow()) { SelectWindow(myWindow); } break; } }
void CMusikSourcesCtrl::OnMouseMove(UINT nFlags, CPoint point) { if ( !m_MouseTrack ) { TRACKMOUSEEVENT tme; tme.cbSize = sizeof( tme ); tme.dwFlags = TME_LEAVE; tme.hwndTrack = m_hWnd; tme.dwHoverTime = HOVER_DEFAULT; ::_TrackMouseEvent( &tme ); m_MouseTrack = true; } if ( m_MouseTrack && ( nFlags & MK_LBUTTON ) ) { CMusikPropTreeItem* pItem = FindItem( point ); if ( pItem && pItem->GetPlaylistType() != -1 ) { DoDrag( pItem ); return; } } }
//---------------------------- PRIVATE -----------------------------// void wxBasePlayerGameListCtrl::MouseMove(wxMouseEvent &event) { wxPoint pos = event.GetPosition(); DoDrag(pos.x, pos.y); }
void Navigator::StopDrag(m2::PointD const & pt, double timeInSec, bool /*animate*/) { DoDrag(pt, timeInSec); m_InAction = false; }