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

  1. #ifndef _ICNRDIHD_
  2. #define _ICNRDIHD_
  3. /*******************************************************************************
  4. * FILE NAME: icnrdihd.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ICnrDrawHandler                                                          *
  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. #include <ihandler.hpp>
  19. #include <icnrdiev.hpp>
  20.  
  21. class IControl;
  22. class IContainerControl;
  23.  
  24. #pragma pack(4)
  25.  
  26. class ICnrDrawHandler : public IHandler {
  27. typedef IHandler
  28.   Inherited;
  29.  
  30. public:
  31. /*-------------------------- Constructors ------------------------------------*/
  32. virtual
  33.  ~ICnrDrawHandler   ( );
  34.  
  35. /*------------------------ Event Processing ----------------------------------*/
  36. virtual Boolean
  37.   drawText          ( ICnrDrawItemEvent&       event),
  38.   drawIcon          ( ICnrDrawItemEvent&       event),
  39.   drawTreeIcon      ( ICnrDrawItemEvent&       event),
  40.   drawDetailsItem   ( ICnrDrawItemEvent&       event),
  41.   drawTitle         ( ICnrDrawItemEvent&       event),
  42.   drawBackground    ( ICnrDrawBackgroundEvent& event);
  43.  
  44.  
  45. /*---------------------------- Event Dispatching -----------------------------*/
  46. virtual ICnrDrawHandler
  47.  &handleEventsFor       ( IContainerControl* container ),
  48.  &stopHandlingEventsFor ( IContainerControl* container );
  49.  
  50.  
  51. protected:
  52. /*------------------------- Constructors -------------------------------------*/
  53.   ICnrDrawHandler   ( );
  54.  
  55. /*-------------------------- Event Dispatching -------------------------------*/
  56. virtual Boolean
  57.   dispatchHandlerEvent ( IEvent& event);
  58.  
  59. private:
  60. /*------------------------- Hidden Members -----------------------------------*/
  61. virtual IHandler
  62.  &handleEventsFor       ( IWindow* window  ),
  63.  &stopHandlingEventsFor ( IWindow* window  );
  64.  
  65. };
  66.  
  67. #pragma pack()
  68.  
  69. #endif
  70.