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
CAD2006View.h
Package: CAD2006.rar [view]
Upload User: ckg1000
Upload Date: 2013-01-26
Package Size: 630k
Code Size: 3k
Category:
CAD
Development Platform:
Visual C++
- // CAD2006View.h : interface of the CCAD2006View class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CAD2006VIEW_H__91ADEF59_5816_4846_83F0_89C66429DCDD__INCLUDED_)
- #define AFX_CAD2006VIEW_H__91ADEF59_5816_4846_83F0_89C66429DCDD__INCLUDED_
- #include "NewEdit.h" // Added by ClassView
- #include "CAD2006Doc.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- enum OPENCLOSE{open,close};
- enum BUTTONDOWN{first,second,third};
- class CCAD2006View : public CView
- {
- protected: // create from serialization only
- CCAD2006View();
- DECLARE_DYNCREATE(CCAD2006View)
- // Attributes
- public:
- CCAD2006Doc* GetDocument();
- OPENCLOSE m_openclose;
- BUTTONDOWN m_state;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCAD2006View)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- 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);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ShowShape(CString str);
- bool ZoomLineSelect(CPoint point);
- bool ZoomPolygonSelect(CPoint point);
- bool ZoomTrigonSelect(CPoint point);
- bool EllipseSelect(CPoint point);
- bool PolygonSelect(CPoint point);
- bool RectSelect(CPoint point);
- bool CircleSelect(CPoint point);
- bool LineSelect(CPoint point);
- bool TrigonSelect(CPoint point);
- virtual ~CCAD2006View();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CCAD2006View)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnFileSave();
- afx_msg void OnFileOpen();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in CAD2006View.cpp
- inline CCAD2006Doc* CCAD2006View::GetDocument()
- { return (CCAD2006Doc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CAD2006VIEW_H__91ADEF59_5816_4846_83F0_89C66429DCDD__INCLUDED_)