wbpen.h

来自「电子白板程序」· C头文件 代码 · 共 53 行

H
53
字号
// WBPen.h: interface for the CWBPen class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WBPEN_H__7AF7EBCC_F945_4311_B35D_8BC1D44FE0A2__INCLUDED_)
#define AFX_WBPEN_H__7AF7EBCC_F945_4311_B35D_8BC1D44FE0A2__INCLUDED_
#pragma warning(disable:4786)
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <list>
using namespace std;

#include "DrawBase.h"

typedef list< POINT >LIST_POINT;

class CWBPen : public CDrawBase  
{
public:
	         CWBPen( CDrawView & view );

	virtual ~CWBPen();

	virtual  CDrawBase * Clone( void );

	virtual  HCURSOR     GetCursor( void );

	virtual  bool        Select( CRect & rc );

	virtual  char * Encode( int & size , bool erase = false );

	virtual  bool  Decode( char * buffer , int size );

protected:

	virtual   void OnDraw( CDC * pDC );

	virtual   void OnLButtonDown( UINT nFlags, CPoint point );

	virtual   void OnMouseMove( UINT nFlags, CPoint point );

	virtual   void OnLButtonUp( UINT nFlags, CPoint point );

private:

	LIST_POINT list_point;

	POINT      orgin;
};

#endif // !defined(AFX_WBPEN_H__7AF7EBCC_F945_4311_B35D_8BC1D44FE0A2__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?