CText2View.h
资源名称:CText2.rar [点击查看]
上传用户:jxd368
上传日期:2013-06-20
资源大小:66k
文件大小:2k
源码类别:
文本生成
开发平台:
Visual C++
- // CText2View.h : CCText2View 类的接口
- //
- #pragma once
- #include "textDialog1.h"
- class CCText2View : public CView
- {
- protected: // 仅从序列化创建
- CCText2View();
- DECLARE_DYNCREATE(CCText2View)
- // 属性
- public:
- CCText2Doc* GetDocument() const;
- // 操作
- public:
- int posX,posY;
- CString textString;//用于显示的处理文本
- CString oldString;//原来的文本
- ctextDialog1 textDialog;
- int speed;
- int width;//屏幕宽度
- int height;//屏幕高度
- int size;//字体大小
- int columnCount;
- int model;//对齐模式
- bool bModify;
- // 重写
- public:
- int count(CString string,int rowNum);
- virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- // 实现
- public:
- virtual ~CCText2View();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // 生成的消息映射函数
- protected:
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnMenu();
- afx_msg void OnBnClickedButton1();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnMymenuFont();
- LOGFONT m_lf;
- COLORREF m_cTextColor;
- afx_msg void OnAlignLeft();
- afx_msg void OnAlignRight();
- afx_msg void OnAlinCenter();
- };
- #ifndef _DEBUG // CText2View.cpp 的调试版本
- inline CCText2Doc* CCText2View::GetDocument() const
- { return reinterpret_cast<CCText2Doc*>(m_pDocument); }
- #endif
English
