home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / stingray / formvw1.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  2.5 KB  |  97 lines

  1. // formvw1.h : header file
  2. //
  3.  
  4. // This is a part of the Objective Grid C++ Library.
  5. // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to
  9. // the Objective Grid Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding
  12. // the Objective Grid product.
  13. //
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CSample1FormView form view
  17.  
  18. #ifndef __AFXEXT_H__
  19. #include <afxext.h>
  20. #endif
  21.  
  22. #include "gxwnd.h"
  23.  
  24. class CSample1FormGridWnd : public CGXGridWnd
  25. {
  26. public:
  27.     virtual BOOL OnValidateCell(ROWCOL nRow, ROWCOL nCol);
  28.     virtual void OnInitialUpdate();
  29.  
  30.     // Generated message map functions
  31.     //{{AFX_MSG(CSample1FormGridWnd)
  32.     //}}AFX_MSG
  33.     DECLARE_MESSAGE_MAP()
  34. };
  35.  
  36. class CSample1FormView : public CFormView
  37. {
  38. protected:
  39.     CSample1FormView();           // protected constructor used by dynamic creation
  40.     DECLARE_DYNCREATE(CSample1FormView)
  41.  
  42. // Form Data
  43. public:
  44.     //{{AFX_DATA(CSample1FormView)
  45.     enum { IDD = IDD_FORMVW1 };
  46.         // NOTE: the ClassWizard will add data members here
  47.     //}}AFX_DATA
  48.  
  49. // Attributes
  50. public:
  51.  
  52.     CSample1FormGridWnd m_wndGrid;
  53.  
  54. // Operations
  55. public:
  56.  
  57. // Overrides
  58.     // ClassWizard generated virtual function overrides
  59.     //{{AFX_VIRTUAL(CSample1FormView)
  60.     public:
  61.     virtual void OnInitialUpdate();
  62.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  63.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  64.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  65.     virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  66.     protected:
  67.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  68.     virtual void OnPrepareDC(CDC* pDC, CPrintInfo*  pInfo = NULL );
  69.     //}}AFX_VIRTUAL
  70.  
  71. // Implementation
  72.  
  73.     virtual void OnActivateView(BOOL, CView*, CView*);
  74.     virtual void OnActivateFrame(UINT, CFrameWnd*);
  75.     BOOL SaveFocusControl();    // updates m_hWndFocus
  76.  
  77. protected:
  78.     virtual ~CSample1FormView();
  79. #ifdef _DEBUG
  80.     virtual void AssertValid() const;
  81.     virtual void Dump(CDumpContext& dc) const;
  82. #endif
  83.  
  84.     // Generated message map functions
  85.     //{{AFX_MSG(CSample1FormView)
  86.     afx_msg void OnFileHeaderfooter();
  87.     afx_msg void OnFilePageSetup();
  88.     afx_msg void OnViewProperties();
  89.     afx_msg void OnEditFind();
  90.     afx_msg void OnEditReplace();
  91.     afx_msg void OnEditRepeat();
  92.     //}}AFX_MSG
  93.     DECLARE_MESSAGE_MAP()
  94. };
  95.  
  96. /////////////////////////////////////////////////////////////////////////////
  97.