摘要: //View类 int m_nDCHeight; int m_nDCWidth; HBITMAP m_hBmp; HBITMAP m_hOldBmp; CDC m_memDC; BYTE *m_pFrontBuffer; // 内存buffer =============================== //OnSiz... 阅读全文
posted @ 2016-08-10 10:30 秋月的私语 阅读(433) 评论(0) 推荐(0) 编辑
摘要: #define LINEINTERSECT_CROSS(ps,pe,p) ((pe->x-ps->x)*(p->y-ps->y)-(p->x-ps->x)*(pe->y-ps->y)) typedef struct XPOINT32Ftag { double x; double y; XPOINT32Ftag(double _x, double _y) { ... 阅读全文
posted @ 2016-08-10 10:28 秋月的私语 阅读(562) 评论(0) 推荐(0) 编辑
摘要: #include #include #define _SnapSame(x1, x2, lfSnap) (0==lfSnap?x1==x2:fabs(x1-x2)x2-lfSnap) #define _SnapLarge2(x1, x2, lfSnap) (x1>x2+lfSnap) //-1在外面,0在上面,1在里面 int PtInRegionEx(dou... 阅读全文
posted @ 2016-08-10 10:26 秋月的私语 阅读(742) 评论(0) 推荐(0) 编辑