Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CText2View.h
Package: CText2.rar [view]
Upload User: jxd368
Upload Date: 2013-06-20
Package Size: 66k
Code Size: 2k
Category:
Text Generation
Development Platform:
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