OnSetCursor


SUBMITTED BY: Guest

DATE: June 30, 2014, 7:23 a.m.

FORMAT: C++

SIZE: 801 Bytes

HITS: 959

  1. BOOL CContourSliderManager::OnSetCursor(CWnd *pWnd, UINT nHitTest, UINT message)
  2. {
  3. if(m_resizing)
  4. {
  5. SetCursor(m_cursor);
  6. }
  7. else
  8. {
  9. if(m_move)
  10. {
  11. SetCursor(AfxGetApp()->LoadStandardCursor(IDC_CROSS));
  12. }
  13. else if(m_resizeHorizontal)
  14. {
  15. SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZEWE));
  16. }
  17. else if(m_resizeVertical)
  18. {
  19. SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZENS));
  20. }
  21. else if(m_resizeDiagonal)
  22. {
  23. SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZENWSE));
  24. }
  25. else if(m_resizeDiagonalOther)
  26. {
  27. SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZENESW));
  28. }
  29. else
  30. {
  31. return Base::OnSetCursor(pWnd, nHitTest, message);
  32. }
  33. }
  34. return TRUE;
  35. }

comments powered by Disqus