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
GraphSoftDoc.h
Package: 44757463.rar [view]
Upload User: lj3531212
Upload Date: 2007-06-18
Package Size: 346k
Code Size: 3k
Category:
Graph Drawing
Development Platform:
Visual C++
- // GraphSoftDoc.h : interface of the CGraphSoftDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GRAPHSOFTDOC_H__1813F4C1_710B_479A_8CE6_22B94F023BE5__INCLUDED_)
- #define AFX_GRAPHSOFTDOC_H__1813F4C1_710B_479A_8CE6_22B94F023BE5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "afxtempl.h"
- #include "Shape.h"
- #include "GraphDefines.h"
- #include "Core.h"
- class CCore;
- class CGraphSoftDoc : public CDocument
- {
- protected: // create from serialization only
- CGraphSoftDoc();
- DECLARE_DYNCREATE(CGraphSoftDoc)
- // Attributes
- public:
- GRAPH_SHAPE_TYPE m_nCurrentShapeType;
- CTypedPtrList<CObList,CShape*> m_shapeList;
- CCore* m_pCore;
- CSize m_sizeDoc;
- // Operations
- public:
- CRect GetSelectGraphBoundaryRect();
- bool HasGraphSelected();
- void RefreshSelectGraph();
- void SelectInRect(CRect* pRect,CDC* pDC,UINT nFlag,bool bDraw=TRUE);
- int GetSelectNum();
- void SetGraphDrawPtFlag(int nFlag,CDC* pDC);
- void GraphLeftToRight(CDC* pDC);
- void GraphTopToBottom(CDC* pDC);
- void SetEditStateCursor(float flx,float fly,float flRate);//设置编辑时的光标
- void ExPort(FILE* outStream);
- void ImPort(FILE* inStream);
- void SetSelGraphColor(COLORREF color,CDC* pDC);
- void SetSelGraphFillClr(COLORREF color,CDC* pDC);
- void SetSelGraphFillSty(SHAPE_FILLSTYLE nStyle,CDC* pDC);
- void SetSelGraphPenWidth(int nWidth,CDC* pDC);
- void GetSelGraphIDArray(CArray<unsigned long,unsigned long>& arrID);
- void GetSelGraphArray(CArray<CShape*,CShape*>& ArrShape);
- void GetSelGraphPropertyArr(CArray<SUNDPropertyUnit,SUNDPropertyUnit>& ArrProperty);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CGraphSoftDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual void DeleteContents();
- virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
- virtual void OnCloseDocument();
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CGraphSoftDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CGraphSoftDoc)
- afx_msg void OnFileNew();
- afx_msg void OnFileImport();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GRAPHSOFTDOC_H__1813F4C1_710B_479A_8CE6_22B94F023BE5__INCLUDED_)