home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lstbx3.zip / ic.hpp < prev    next >
Text File  |  1994-06-01  |  2KB  |  63 lines

  1. #ifndef IC_HPP
  2.   #define IC_PP
  3.  
  4. #include <iframe.hpp>                   // IFrameWindow
  5. #include <istattxt.hpp>                 // IStaticText
  6. #include <ipushbut.hpp>                 // IPushButton
  7. #include <icheckbx.hpp>                 // ICheckBox
  8. #include <imcelcv.hpp>                  // IMultiCellCanvas
  9. #include <icmdhdr.hpp>                  // ICommandHandler
  10. #include <ictlevt.hpp>                  // IControlEvent
  11. #include <iselhdr.hpp>                  // ISelectHandler
  12.  
  13. #include "xlistbox.hpp"
  14.  
  15.  
  16. /******************************************************************************/
  17. /* Class   : AMultiCellCanvas                                                 */
  18. /*                                                                            */
  19. /* Purpose : main window for multi cell canvas sample application             */
  20. /*           the window contains a multi-cell canvas and the other controls   */
  21. /*           are attached to the canvas.  The pushbutton displays a           */
  22. /*           message box showing the current state of the buttons             */
  23. /*           AMultiCellCanvas is derived from IFrameWindow                    */
  24. /******************************************************************************/
  25. class DemoWindow : public IFrameWindow, public ICommandHandler,
  26.                                         public ISelectHandler
  27. {
  28. typedef IFrameWindow
  29.   Inherited;
  30.  
  31. public:
  32.   DemoWindow   ( unsigned long windowId );
  33.   ~DemoWindow  ( );
  34.  
  35. protected:
  36. Boolean
  37.   command      ( ICommandEvent &event ),
  38.   selected     ( IControlEvent &event );
  39.  
  40. private:
  41. IMultiCellCanvas
  42.   clientCanvas;
  43.  
  44. ListBox32
  45.  *pListBox;
  46.  
  47. IStaticText
  48.   titleText;
  49.  
  50. IMultiCellCanvas
  51.   soundCanvas;
  52. ICheckBox
  53.   soundBox;
  54.  
  55. IPushButton
  56.   chkAllButton,
  57.   unChkAllButton,
  58.   selAllButton,
  59.   deSelAllButton;
  60. };
  61.  
  62. #endif
  63.