home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ocl150a.zip / OCL / Samples / Listbox / Source / Listbox.hpp < prev    next >
C/C++ Source or Header  |  1996-11-12  |  779b  |  51 lines

  1. // OCL Sample 
  2.  
  3. // Listbox.hpp
  4.  
  5. #include <ocl.hpp>
  6. #include <OApp.hpp>
  7. #include <OFrame.hpp>
  8. #include <OListbox.hpp>
  9. #include <OPMException.hpp>
  10.  
  11. #include "..\Source\Listbox.h"
  12.  
  13.  
  14. typedef class BoxSample *pBoxSample;
  15.  
  16. class BoxSample 
  17.    : public OApp, 
  18.      public OFrame
  19. {
  20.  private:
  21.    OListBox *box;
  22.  
  23.  public:
  24.  
  25.    BoxSample();
  26.    ~BoxSample();
  27.  
  28.    virtual PSZ isOfType() const { return("BoxSample"); }
  29.    void init();
  30.    void run();
  31.  
  32.    BOOL OCommand(ULONG msg, MPARAM mp1, MPARAM mp2);
  33. };
  34.  
  35.  
  36. typedef class LBException *pLBException;
  37.  
  38. class LBException 
  39.    : public OException
  40. {
  41.  public:
  42.    LBException();
  43.    ~LBException();
  44.  
  45.    virtual PSZ isOfType() const { return("LBException"); }
  46.    void viewError();
  47. };
  48.  
  49.  
  50. // end of source
  51.