Guest User

Untitled

a guest
Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. void CGUI::MouseMove( CMouse * pMouse )
  2. {
  3. CElement * pDragging = GetMouse()->GetDragging();
  4. if( !pDragging )
  5. {
  6. bool bGotWindow = false;
  7.  
  8. for( int iIndex = static_cast<int>( m_vWindows.size() ) - 1; iIndex >= 0; iIndex-- )
  9. {
  10. if( !m_vWindows[ iIndex ]->IsVisible() )
  11. continue;
  12.  
  13. int iHeight = 0;
  14.  
  15. if( !m_vWindows[ iIndex ]->GetMaximized() )
  16. iHeight = TITLEBAR_HEIGHT;
  17.  
  18. if( !bGotWindow && gpGui->GetMouse()->InArea( m_vWindows[ iIndex ], iHeight ) )
  19. {
  20. m_vWindows[ iIndex ]->MouseMove( pMouse );
  21. bGotWindow = true;
  22. }
  23. else
  24. {
  25. pMouse->SavePos();
  26. pMouse->SetPos( -1, -1 );
  27. m_vWindows[ iIndex ]->MouseMove( pMouse );
  28. pMouse->LoadPos();
  29. }
  30. }
  31. }
  32. else
  33. pDragging->MouseMove( pMouse );
  34. }
Add Comment
Please, Sign In to add comment