home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / vlstde / vlistbox.hpp < prev   
Encoding:
C/C++ Source or Header  |  1992-02-12  |  827 b   |  43 lines

  1. //    vlistbox.hpp        VIRTUAL LISTBOX CLASS WITH TWO SCROLL BARS
  2. //    written by Gregory K. Miskin
  3. //    COPYRIGHT (C) 1992.  All Rights Reserved.
  4. //    Gregory K. Miskin, Orem, Utah  USA
  5.  
  6. #ifndef _VListBox_hpp
  7. #define _VListBox_hpp
  8.  
  9. #include "structs.hpp"
  10. #include "d4all.h"
  11.  
  12. class far TRect;
  13.  
  14. class VListBox : public TListViewer
  15. {
  16. public:
  17.     VListBox( const TRect& bounds, ushort aNumCols,
  18.                     TScrollBar *hScrollBar,
  19.                     TScrollBar *vScrollBar);
  20.     ~VListBox();
  21.  
  22.     CodeBase            *cBase;
  23.     DataIndex        *name;
  24.  
  25.     long GetRecord(long item);
  26.     void OpenFiles();
  27.  
  28. protected:
  29.     Field                *Fld;
  30.     sfFields            fields;
  31.  
  32.     virtual void getText( char *dest, long item, long maxLen );
  33.  
  34.     void GetStr(int field_num, char *fld);
  35.     void GetFields();
  36.     void BuildLine();
  37.  
  38.     long     filePos;
  39.     int    status;
  40.     char     line[105];
  41. };
  42. #endif
  43.