You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
267 B
C
17 lines
267 B
C
|
1 month ago
|
#pragma once
|
||
|
|
#include <afxwin.h>
|
||
|
|
|
||
|
|
class RubberLine
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
RubberLine();
|
||
|
|
void SetOriginPoint(const CPoint & originPt);
|
||
|
|
void Draw(CDC * pDC, CPoint & motionPt);
|
||
|
|
void Erease(CDC * pDC);
|
||
|
|
private:
|
||
|
|
CPoint m_originPt;
|
||
|
|
CPoint m_oldMotionPt;
|
||
|
|
bool m_firstDraw;
|
||
|
|
};
|
||
|
|
|