home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / turbocad / v8trial / TurboCADv8ProfessionalNoReg.exe / Data.Cab / F37608_ViewWnd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  2.6 KB  |  94 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. #if !defined(AFX_VIEWWND_H__4B1AA264_851C_11D2_8BEA_00403338C504__INCLUDED_)
  12. #define AFX_VIEWWND_H__4B1AA264_851C_11D2_8BEA_00403338C504__INCLUDED_
  13.  
  14. #include "StdAfx.h"    // Added by ClassView
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. // ViewWnd.h : header file
  19. //
  20. #include "InsSymb.h"
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CPreviewWnd window
  24. #define GF_OPENMODE 35
  25.  
  26. class CPreviewWnd : public CWnd
  27. {
  28. // Construction
  29. public:
  30.     CPreviewWnd(CInsSymb* pTool);
  31.     CPreviewWnd();
  32.  
  33. // Attributes
  34. public:
  35.  
  36. // Operations
  37. public:
  38.  
  39. // Overrides
  40.     // ClassWizard generated virtual function overrides
  41.     //{{AFX_VIRTUAL(CPreviewWnd)
  42.     public:
  43.     virtual void OnFinalRelease();
  44.     //}}AFX_VIRTUAL
  45.  
  46. // Implementation
  47. public:
  48.     long m_lDwg;
  49.     Drawings* m_pDwgs;
  50.     IApplication* m_pIApp;
  51.     Views* m_pViewsCol;
  52.  
  53.     Graphics* m_pPreviewGrs;
  54.     long m_lApp;
  55.     CString m_selected;
  56.     BOOL m_FirstStart;
  57.     void ClearAll();
  58.     void Clear();
  59.     void RefreshList();
  60.     BOOL DoPreview();
  61.     BOOL CreatePreview();
  62.     View* m_pPreviewView;
  63.     IDrawing* m_pPreviewDrawing;
  64.     long* m_hCurActDr; 
  65.     // get current active drawing
  66.  
  67.     virtual ~CPreviewWnd();
  68.  
  69.     // Generated message map functions
  70. protected:
  71.     CInsSymb *m_pTool;
  72.     APPDRAWINGNEWEX m_pfAppDwgNew;
  73.     APPGETCURRENTAPP m_pfGetApp;
  74.     GRAPHICFILEOPENEX m_pfFileOpen;
  75.     //{{AFX_MSG(CViewWnd)
  76.     afx_msg void OnPaint();
  77.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  78.     //}}AFX_MSG
  79.     DECLARE_MESSAGE_MAP()
  80.     // Generated OLE dispatch map functions
  81.     //{{AFX_DISPATCH(CPreviewWnd)
  82.         // NOTE - the ClassWizard will add and remove member functions here.
  83.     //}}AFX_DISPATCH
  84.     DECLARE_DISPATCH_MAP()
  85.     DECLARE_INTERFACE_MAP()
  86. };
  87.  
  88. /////////////////////////////////////////////////////////////////////////////
  89.  
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  92.  
  93. #endif // !defined(AFX_VIEWWND_H__4B1AA264_851C_11D2_8BEA_00403338C504__INCLUDED_)
  94.