daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top