home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Samples / vfHex / FileVF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-10  |  2.2 KB  |  91 lines

  1. // -------------------------------------------------------------------------
  2. // Copyright @ 1997 TCK Software, Incorporated
  3. // All Rights Reserved
  4. // -------------------------------------------------------------------------
  5.  
  6. #ifndef __FILEVF_H__
  7. #define __FILEVF_H__
  8.  
  9. #include "vForm.h"
  10. #include "VCtl2.h"
  11. #include "VfHexDoc.h"
  12. #include "VHexStatic.h"
  13.  
  14. #define ID_HEXHDR_CHKHEX        201    
  15.  
  16. #define ID_HEX_RECNO            301
  17. #define ID_HEX_REC                302
  18.  
  19. class CFileVF;
  20.  
  21. // -------------------------------------------------------------------------
  22. // CFileVfHdr Class
  23. // -------------------------------------------------------------------------
  24. class CFileVfHdr : public VHeader
  25. {
  26. public:
  27.     CFileVfHdr();
  28.     virtual ~CFileVfHdr() {};
  29.  
  30. public:
  31.     VCheckBox    m_chkHex;
  32. };
  33.  
  34. // -------------------------------------------------------------------------
  35. // CFileVfRow Class
  36. // -------------------------------------------------------------------------
  37. class CFileVfRow : public VRow
  38. {
  39. public:
  40.     CFileVfRow();
  41.     virtual ~CFileVfRow();
  42.  
  43. public:
  44.     VStatic        m_lblRecNo;            // Record Number - label
  45.     VHexStatic    m_hexRec;            // ASCII/Hex text control
  46. };
  47.  
  48. // -------------------------------------------------------------------------
  49. // CFileVF Class
  50. // -------------------------------------------------------------------------
  51. class CFileVF : public VForm
  52. {
  53. protected:
  54.     CVfHexDoc *m_pDoc;            // Pointer to Document
  55.     BOOL        m_bHexOn;        // Show Hex Info?
  56.  
  57. public:
  58.     CFileVF();                        // Constructor
  59.     virtual ~CFileVF();                // Destructor
  60.     void Init(CVfHexDoc *m_pDoc);    // Init Routine
  61.     void ResetWidth(int nRecSize);
  62.  
  63. public:
  64. // Overrides
  65.     // ClassWizard generated virtual function overrides
  66.     //{{AFX_VIRTUAL(CFileVF)
  67.     public:
  68.     protected:
  69.     //}}AFX_VIRTUAL
  70.  
  71. protected:
  72.     virtual VRow*    InitRow();
  73.  
  74.     // --- the following functions deal with the Data ---
  75.     virtual    BOOL    OnGetRow(VRow *pRow);        // Puts row to screen
  76.     virtual BOOL    OnSaveRow(VRow *pRow) { return FALSE; }
  77.     virtual BOOL    OnAddRow(VRow *pRow) { return FALSE; }
  78.  
  79.     virtual void    OnClick(VRow *pRow, int nId);
  80.  
  81. // Generated message map functions
  82. protected:
  83.     //{{AFX_MSG(CFileVF)
  84.     //}}AFX_MSG
  85.     DECLARE_MESSAGE_MAP()
  86. };
  87.  
  88. #endif
  89.  
  90.  
  91.