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
MyCADInfo.cpp
Package: MiniCAD_ALL.zip [view]
Upload User: netltd
Upload Date: 2013-02-12
Package Size: 7234k
Code Size: 2k
Category:
Graph Drawing
Development Platform:
Visual C++
- // MyCADInfo.cpp : implementation file
- //////////////////////////////////////////////////////////////////////////////////////////////
- // CCADInfo
- #include "stdafx.h"
- #include "MyCADInfo.h"
- //////////////////////////////////////////////////////////////////////////////////////////////
- CCADInfo::CCADInfo()
- {
- char pDir[_MAX_PATH];
- //获取当前路径
- ::GetCurrentDirectory(_MAX_PATH,pDir);
- //省缺的项目文件路径为当前路径
- ProjectPath = pDir;
- //省缺的图纸文件路径为当前路径
- FilePath = pDir;
- IsEmpty = TRUE;
- KindofNew = NEW_NONE;
- BackColor = RGB(255, 255, 255);
- //缺省画笔颜色
- PenColor = RGB(0, 0, 0);
- //缺省画笔线形
- LineStyle = PS_SOLID;
- }
- CCADInfo::~CCADInfo()
- {
- }
- //////////////////////////////////////////////////////////////////////////////////////////////
- //CFileInfo
- IMPLEMENT_SERIAL(CFileInfo, CObject, 1)
- CFileInfo::CFileInfo()
- {
- size.cx = 0;
- size.cy = 0;
- }
- CFileInfo::CFileInfo(const CFileInfo& Info)
- {
- Name = Info.Name;
- FileName = Info.FileName;
- FilePath = Info.FilePath;
- size.cx = Info.size.cx;
- size.cy = Info.size.cy;
- }
- CFileInfo::operator =(const CFileInfo& Info)
- {
- Name = Info.Name;
- FileName = Info.FileName;
- FilePath = Info.FilePath;
- size.cx = Info.size.cx;
- size.cy = Info.size.cy;
- }
- CFileInfo::~CFileInfo()
- {
- }
- void CFileInfo::Serialize(CArchive& ar)
- {
- if(ar.IsStoring())
- {
- ar << Name << FilePath << FileName << size;
- }
- else
- {
- ar >> Name >> FilePath >> FileName >> size;
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////////////
- // CProjectInfo
- IMPLEMENT_SERIAL(CProjectInfo, CObject, 1)
- CProjectInfo::CProjectInfo()
- {
- //初始图纸数目为0
- FileNum = 0;
- }
- CProjectInfo::~CProjectInfo()
- {
- }