home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ilbdihdr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.3 KB  |  64 lines

  1. #ifndef _ILBDIHDR_
  2. #define _ILBDIHDR_
  3. /*******************************************************************************
  4. * FILE NAME: ilbdihdr.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IListBoxDrawItemHandler                                                  *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18.  
  19. #include <ihandler.hpp>
  20. #include <ibitflag.hpp>
  21. #include <ilbdievt.hpp>
  22.  
  23. class IListBox;
  24. class ISize;
  25. class IWindow;
  26.  
  27. #pragma pack(4)
  28.  
  29.  
  30. class IListBoxDrawItemHandler : public IHandler {
  31. typedef IHandler
  32.   Inherited;
  33. public:
  34. /*------------------------------- Constructors -------------------------------*/
  35.   IListBoxDrawItemHandler ( );
  36.  
  37. virtual
  38.  ~IListBoxDrawItemHandler ( );
  39.  
  40. /*---------------------------- Window Attachment -----------------------------*/
  41. virtual IListBoxDrawItemHandler
  42.  &handleEventsFor ( IListBox* listBox ),
  43.  &handleEventsFor ( IWindow*  listBoxOwner );
  44.  
  45. protected:
  46. /*------------------------------ Event Handling ------------------------------*/
  47. virtual Boolean
  48.   dispatchHandlerEvent ( IEvent&                event );
  49.  
  50. virtual Boolean
  51.   setItemSize          ( IListBoxSizeItemEvent& event );
  52.  
  53. virtual Boolean
  54.   drawItem             ( IListBoxDrawItemEvent& event ),
  55.   selectItem           ( IListBoxDrawItemEvent& event ),
  56.   deselectItem         ( IListBoxDrawItemEvent& event );
  57.  
  58. }; // IListBoxDrawItemHandler
  59.  
  60.  
  61. #pragma pack()
  62.  
  63. #endif /* _ILBDIHDR_ */
  64.