3G space for you,but don't delete my files

http://www.msnusers.com/ll0gt5ejn3nrki5aubihpmtbi5/Documents
mail me if you have not got admire to upload files.

post some SmartDraw code ,let it become a tech article

 

class CDrawObject
{
public:

 CDrawObject(
void)
 
{
  m_pCanvas 
= NULL;
  m_crForegroundColor 
= RGB(0,0,0);
  m_uLineWidth 
= 1;
  m_uLineStyle 
= PS_SOLID;
 }


 
~CDrawObject(void)
 
{
 }


 
virtual void OnStartDrag() = 0;
 
virtual void OnDrag() = 0;
 
virtual void OnEndDrag() = 0;

 
void set_Canvas(CCanvas* pCanvas){m_pCanvas = pCanvas; }
 UINT get_Type()
{return m_uType; }
 
void set_NewPoint(CPoint ptNew){m_ptNew = ptNew; }
 
void set_ForegroundColor(COLORREF crForegroundColor){m_crForegroundColor = crForegroundColor; }

protected:
 UINT m_uType; 
//which type of the object ,such as a pencil or brush
 CPoint m_ptOld;
 CPoint m_ptNew;

 CCanvas
* m_pCanvas; //we need dc

 COLORREF m_crForegroundColor;
 UINT m_uLineStyle;
 UINT m_uLineWidth;

}
;

posted on 2004-07-27 11:42  LeighSword  阅读(260)  评论(0编辑  收藏  举报

导航