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

  1. #ifndef _ICNRDIEV_
  2. #define _ICNRDIEV_
  3. /*******************************************************************************
  4. * FILE NAME: icnrdiev.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ICnrDrawItemEvent                                                        *
  9. *     ICnrDrawBackgroundEvent                                                  *
  10. *                                                                              *
  11. * COPYRIGHT:                                                                   *
  12. *   IBM Open Class Library                                                     *
  13. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  14. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  15. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. *******************************************************************************/
  19.  
  20. #include <idievt.hpp>
  21.  
  22. class IContainerObject;
  23. class IContainerControl;
  24. class IContainerColumn;
  25.  
  26. #pragma pack(4)
  27.  
  28. class ICnrDrawItemEvent : public IDrawItemEvent {
  29. typedef IDrawItemEvent
  30.   Inherited;
  31.  
  32. public:
  33. /*------------------------ Constructors --------------------------------------*/
  34.   ICnrDrawItemEvent    ( const IEvent& event);
  35.  
  36. virtual
  37.  ~ICnrDrawItemEvent    ( );
  38.  
  39. /*----------------------- Related Members ------------------------------------*/
  40. enum ItemType  {
  41.   text,
  42.   icon,
  43.   treeIcon,
  44.   detailsView,
  45.   title
  46.   };
  47.  
  48. /*-------------------------- Event Information -------------------------------*/
  49. virtual IContainerObject
  50.  *object               ( ) const;
  51. virtual IContainerControl
  52.  *container            ( ) const;
  53. virtual IContainerColumn
  54.  *column               ( ) const;
  55. virtual ItemType
  56.   itemType             ( ) const;
  57.  
  58. virtual IPresSpaceHandle
  59.   itemPresSpaceHandle  ( ) const;
  60.  
  61. virtual IRectangle
  62.   itemRect             ( ) const;
  63.  
  64. };
  65.  
  66. class ICnrDrawBackgroundEvent : public IEvent {
  67. typedef IEvent
  68.   Inherited;
  69. public:
  70. /*------------------------ Constructors --------------------------------------*/
  71.   ICnrDrawBackgroundEvent  ( const IEvent& event);
  72.  
  73. virtual
  74.  ~ICnrDrawBackgroundEvent  ( );
  75.  
  76. /*-------------------------- Event Information -------------------------------*/
  77. virtual IContainerControl
  78.  *container            ( ) const;
  79.  
  80. virtual IPresSpaceHandle
  81.   itemPresSpaceHandle  ( ) const;
  82.  
  83. virtual unsigned long
  84.   itemId               ( ) const;
  85.  
  86. virtual IRectangle
  87.   itemRect             ( ) const;
  88.  
  89. };
  90.  
  91. #pragma pack()
  92.  
  93. #endif // _ICNRDIEV_
  94.