Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CCanvasStatic::OnLButtonDown(UINT nFlags, CPoint point)
- {
- SetCapture ();
- if (this == GetCapture ())
- (*m_pBGDlg->m_Shape).m_ptStart = point;
- CStatic::OnLButtonDown(nFlags, point);
- }
- void CCanvasStatic::OnLButtonUp(UINT nFlags, CPoint point)
- {
- if (some expression)
- {
- (*m_pBGDlg->m_Shape).m_ptEnd = point;
- Invalidate ();
- UpdateWindow ();
- }
- ReleaseCapture ();
- CStatic::OnLButtonUp(nFlags, point);
- }
Add Comment
Please, Sign In to add comment