Guest User

Untitled

a guest
Dec 7th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. void CCanvasStatic::OnLButtonDown(UINT nFlags, CPoint point)
  2. {
  3. SetCapture ();
  4. if (this == GetCapture ())
  5. (*m_pBGDlg->m_Shape).m_ptStart = point;
  6.  
  7. CStatic::OnLButtonDown(nFlags, point);
  8. }
  9.  
  10. void CCanvasStatic::OnLButtonUp(UINT nFlags, CPoint point)
  11. {
  12. if (some expression)
  13. {
  14. (*m_pBGDlg->m_Shape).m_ptEnd = point;
  15. Invalidate ();
  16. UpdateWindow ();
  17. }
  18. ReleaseCapture ();
  19.  
  20. CStatic::OnLButtonUp(nFlags, point);
  21. }
Add Comment
Please, Sign In to add comment