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
Shape.h
Package: TCAD.rar [view]
Upload User: ggmm7909
Upload Date: 2008-11-12
Package Size: 80k
Code Size: 1k
Category:
Graph Drawing
Development Platform:
C/C++
- // Shape.h: interface for the CShape class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SHAPE_H__DB7F2CCB_B57E_4475_BCB2_141AF81757F2__INCLUDED_)
- #define AFX_SHAPE_H__DB7F2CCB_B57E_4475_BCB2_141AF81757F2__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "iostream.h"
- #include "fstream.h"
- #include "iomanip.h"
- #include "Draw.h"
- #define Rect 4 //Rect为标记圆的半径
- class CShape
- {
- public:
- BOOL isPick; //pick state
- char m_className[255];
- POINT m_ptFirstPos; // first point
- POINT m_ptSecondPos; // second point
- int fnPenStyle; // pen style
- int nWidth; // pen width
- COLORREF crColor ; // pen color
- public:
- CShape();
- virtual ~CShape();
- public:
- virtual void Draw(HDC) {}
- virtual void Save(ostream &) ;
- virtual void Open(istream &) ;
- virtual void SaveClassName(ostream &){}
- virtual BOOL pick(POINT){return 0;}
- virtual void DrawRect(HDC){}
- };
- #endif // !defined(AFX_SHAPE_H__DB7F2CCB_B57E_4475_BCB2_141AF81757F2__INCLUDED_)