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

  1. #ifndef _ICUSTBHD_
  2. #define _ICUSTBHD_
  3. /*******************************************************************************
  4. * FILE NAME: icustbhd.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ICustomButtonDrawHandler                                                 *
  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 <icustbev.hpp>
  20.  
  21. #pragma pack(4)
  22.  
  23.  
  24. class ICustomButtonDrawHandler : public IHandler {
  25. typedef IHandler
  26.   Inherited;
  27. public:
  28. /*------------------------------- Constructors -------------------------------*/
  29.    ICustomButtonDrawHandler();
  30.  
  31. virtual
  32.   ~ICustomButtonDrawHandler();
  33.  
  34. protected:
  35. /*---------------------------- Event Dispatching -----------------------------*/
  36. virtual Boolean
  37.   dispatchHandlerEvent(IEvent& event);
  38.  
  39. /*---------------------------- Event Processing ------------------------------*/
  40. virtual Boolean
  41.   drawButton           ( ICustomButtonDrawEvent& event );
  42.  
  43. virtual void
  44.   drawBorder           ( ICustomButtonDrawEvent& event,
  45.                          ISize                   margin = ISize() ),
  46.   drawBackground       ( ICustomButtonDrawEvent& event ),
  47.   drawForeground       ( ICustomButtonDrawEvent& event ),
  48.   drawDisabledEmphasis ( ICustomButtonDrawEvent& event );
  49.  
  50. private:
  51. /*--------------------------------- Private ----------------------------------*/
  52. };
  53.  
  54.  
  55. #pragma pack()
  56.  
  57. #endif /* ICUSTBHD */
  58.