home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ocl150a.zip / OCL / Samples / ProcStat / Source / ProcStat.hpp < prev    next >
C/C++ Source or Header  |  1997-01-27  |  979b  |  60 lines

  1. // OCL Sample 
  2. // Procstat.hpp
  3.  
  4. #include <ocl.hpp>
  5.  
  6. #include <OXapp.hpp>
  7. #include <OFrame.hpp>
  8. #include <OContainer.hpp>
  9. #include <OPMException.hpp>
  10. #include <OProcStat.hpp>
  11. #include <OFontDialog.hpp>
  12.  
  13.  
  14. #include "..\Source\procstat.h"
  15.  
  16.  
  17. class PContainer
  18.   : public OContainer<MINIRECORDCORE, MINIRECORDCORE>,
  19.     public OProcStat
  20. {
  21.  private:
  22.    HPOINTER hptr;
  23.  
  24.  public:
  25.    PContainer(pOFrame Parent);
  26.    virtual ~PContainer();
  27.  
  28.    virtual PSZ isOfType() const { return("PContainer"); }
  29.  
  30.    BOOL setupDetails();
  31.    BOOL setupItems();
  32.    BOOL insertChilds(PMINIRECORDCORE parentRecord, ULONG ulParent);
  33. };
  34.  
  35.  
  36.  
  37.  
  38. typedef class Procstat *pProcstat;
  39.  
  40. class Procstat 
  41.   : public OFrame
  42. {
  43.  private:
  44.    OXApp      app;
  45.    PContainer *cnr;
  46.  
  47.  public:
  48.  
  49.    Procstat();
  50.    ~Procstat();
  51.  
  52.    virtual PSZ isOfType() const { return("Procstat"); }
  53.  
  54.    void init();
  55.    BOOL OCommand(ULONG msg, MPARAM mp1, MPARAM mp2);
  56. };
  57.  
  58.  
  59. // end of source
  60.