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 / gridsvw8.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  2.4 KB  |  94 lines

  1. // gridsvw8.h : interface of the CGridSample8View class
  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. #ifndef _MYGRIDVW_H_
  16. #include "mygridvw.h"
  17. #endif
  18.  
  19. #ifndef _GXCTRL_H_
  20. #include "gxctrl.h"
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CGridSample8CheckBox
  25.  
  26. class CGXScrollTip;
  27.  
  28. // owner drawn checkbox
  29.  
  30. class CGridSample8CheckBox: public CGXCheckBox
  31. {
  32. public:
  33.     CGridSample8CheckBox(CGXGridCore* pGrid);
  34.     virtual COLORREF GetColorValue(COLORREF rgb, BOOL bPrint);
  35. };
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CGridSample8View view
  39.  
  40. class CGridSample8View : public CMyGridView
  41. {
  42. protected: // create from serialization only
  43.     CGridSample8View();
  44.     DECLARE_DYNCREATE(CGridSample8View)
  45.  
  46. // Attributes
  47. public:
  48.     CGridSampleDoc* GetDocument();
  49.  
  50.     LONG nValue1, nValue2, nValue3;
  51.     ROWCOL m_nProgBarRow, m_nProgBarCol;
  52.     BOOL m_bTimerRunning;
  53.  
  54. // Scrolltips
  55. #if _MFC_VER >= 0x0400
  56.     CGXScrollTip*    m_pScrollTip;
  57. #endif
  58.  
  59. // Operations
  60.     BOOL ConnectParam();
  61.     void SetupControls();
  62.     void UpdateProgressDisplay();
  63.  
  64. // Implementation
  65. public:
  66.     virtual ~CGridSample8View();
  67.     virtual void OnInitialUpdate();
  68.     virtual void OnActivateView(BOOL, CView*, CView*);
  69.     virtual void OnClickedButtonRowCol(ROWCOL nRow, ROWCOL nCol);
  70.     virtual BOOL CanActivateGrid(BOOL bActivate);
  71. #ifdef _DEBUG
  72.     virtual void AssertValid() const;
  73.     virtual void Dump(CDumpContext& dc) const;
  74. #endif
  75.  
  76. // Generated message map functions
  77. protected:
  78.     //{{AFX_MSG(CGridSample8View)
  79.     afx_msg void OnViewUseractions();
  80.     afx_msg void OnViewSplitterview();
  81.     afx_msg void OnTimer(UINT nIDEvent);
  82.     afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  83.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  84.     //}}AFX_MSG
  85.     DECLARE_MESSAGE_MAP()
  86. };
  87.  
  88. #ifndef _DEBUG  // debug version in gridsvw.cpp
  89. inline CGridSampleDoc* CGridSample8View::GetDocument()
  90.    { return (CGridSampleDoc*) m_pDocument; }
  91. #endif
  92.  
  93. /////////////////////////////////////////////////////////////////////////////
  94.