text.h

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

H
51
字号
// Text.h: interface for the CText class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEXT_H__6738E912_238E_41B9_8E1A_503EF50ABC34__INCLUDED_)
#define AFX_TEXT_H__6738E912_238E_41B9_8E1A_503EF50ABC34__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DrawBase.h"

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

	virtual ~CText();

	virtual  CDrawBase * Clone( void );

	virtual  bool Select( CRect & rc );

	virtual  HCURSOR GetCursor( void );

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

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

protected:

	static LRESULT CALLBACK WindowProc(HWND hwnd,UINT message, WPARAM wParam, LPARAM lParam);

	virtual   void OnLButtonDown( UINT nFlags, CPoint point );

	virtual   void OnMouseMove( UINT nFlags, CPoint point );

	virtual   void OnLButtonUp( UINT nFlags, CPoint point );

	virtual   void OnDraw( CDC * pDC );

private:

	CString  text;

	static   CEdit edit;
};

#endif // !defined(AFX_TEXT_H__6738E912_238E_41B9_8E1A_503EF50ABC34__INCLUDED_)

⌨️ 快捷键说明

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