home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / FILE_LK.ZIP / FILELVW.H < prev    next >
C/C++ Source or Header  |  1993-12-18  |  2KB  |  62 lines

  1. // filelvw.h : interface of the CFilelookView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CFilelookView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CFilelookView();
  9.     DECLARE_DYNCREATE(CFilelookView)
  10.  
  11. // Attributes
  12. public:
  13.     CFilelookDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CFilelookView();
  21.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  22.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  23. #ifdef _DEBUG
  24.     virtual void AssertValid() const;
  25.     virtual void Dump(CDumpContext& dc) const;
  26. #endif
  27.  
  28.  
  29. // Generated message map functions
  30. protected:
  31.     //{{AFX_MSG(CFilelookView)
  32.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  33.     afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  34.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  35.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  36.     afx_msg void OnFileClose();
  37.     afx_msg void OnUpdateIndicatorColumn(CCmdUI* pCmdUI);
  38.     afx_msg void OnUpdateIndicatorFilesize(CCmdUI* pCmdUI);
  39.     afx_msg void OnUpdateIndicatorRow(CCmdUI* pCmdUI);
  40.     //}}AFX_MSG
  41.     DECLARE_MESSAGE_MAP()
  42.  
  43. private:
  44.     short       m_nVScrollPos;
  45.     short       m_nHScrollPos;
  46.  
  47.  
  48.     LONG        m_lTopLine;
  49.  
  50.     UINT        m_nCxChar;
  51.     UINT        m_nCyChar;
  52.     UINT        m_nLinesPainted;
  53.  
  54. };
  55.  
  56. #ifndef _DEBUG    // debug version in filelvw.cpp
  57. inline CFilelookDoc* CFilelookView::GetDocument()
  58.    { return (CFilelookDoc*) m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.