home *** CD-ROM | disk | FTP | other *** search
- // formvw1.h : header file
- //
-
- // This is a part of the Objective Grid C++ Library.
- // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
- // All rights reserved.
- //
- // This source code is only intended as a supplement to
- // the Objective Grid Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding
- // the Objective Grid product.
- //
-
- /////////////////////////////////////////////////////////////////////////////
- // CSample1FormView form view
-
- #ifndef __AFXEXT_H__
- #include <afxext.h>
- #endif
-
- #include "gxwnd.h"
-
- class CSample1FormGridWnd : public CGXGridWnd
- {
- public:
- virtual BOOL OnValidateCell(ROWCOL nRow, ROWCOL nCol);
- virtual void OnInitialUpdate();
-
- // Generated message map functions
- //{{AFX_MSG(CSample1FormGridWnd)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- class CSample1FormView : public CFormView
- {
- protected:
- CSample1FormView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CSample1FormView)
-
- // Form Data
- public:
- //{{AFX_DATA(CSample1FormView)
- enum { IDD = IDD_FORMVW1 };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
-
- // Attributes
- public:
-
- CSample1FormGridWnd m_wndGrid;
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSample1FormView)
- public:
- virtual void OnInitialUpdate();
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL );
- //}}AFX_VIRTUAL
-
- // Implementation
-
- virtual void OnActivateView(BOOL, CView*, CView*);
- virtual void OnActivateFrame(UINT, CFrameWnd*);
- BOOL SaveFocusControl(); // updates m_hWndFocus
-
- protected:
- virtual ~CSample1FormView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- // Generated message map functions
- //{{AFX_MSG(CSample1FormView)
- afx_msg void OnFileHeaderfooter();
- afx_msg void OnFilePageSetup();
- afx_msg void OnViewProperties();
- afx_msg void OnEditFind();
- afx_msg void OnEditReplace();
- afx_msg void OnEditRepeat();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- /////////////////////////////////////////////////////////////////////////////
-