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

  1. #ifndef _ILBDIEVT_
  2. #define _ILBDIEVT_
  3. /*******************************************************************************
  4. * FILE NAME: ilbdievt.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IListBoxDrawItemEvent                                                    *
  9. *     IListBoxSizeItemEvent                                                    *
  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. #include <idievt.hpp>
  20.  
  21. class IListBoxDrawItemHandler;
  22. class ISize;
  23.  
  24. #pragma pack(4)
  25.  
  26.  
  27. class IListBoxDrawItemEvent : public IDrawItemEvent {
  28. typedef IDrawItemEvent
  29.   Inherited;
  30. public:
  31. /*------------------------------- Constructors -------------------------------*/
  32.   IListBoxDrawItemEvent ( IEvent& event );
  33.  
  34. virtual
  35.  ~IListBoxDrawItemEvent ( );
  36.  
  37. /*--------------------------------- Testing ----------------------------------*/
  38. Boolean
  39.   isSelected ( ) const;
  40.  
  41. /*----------------------------- Selection State ------------------------------*/
  42. IListBoxDrawItemEvent
  43.  &setSelectionStateDrawn ( Boolean drawn = true );
  44. Boolean
  45.   isSelectionStateDrawn  ( ) const;
  46.  
  47. private:
  48. /*--------------------------------- Private ----------------------------------*/
  49. friend IListBoxDrawItemHandler;
  50.  
  51. Boolean
  52.   isDrawItem        ( ) const,
  53.   isSetHighlight    ( ) const,
  54.   isRemoveHighlight ( ) const;
  55.  
  56. Boolean
  57.   fSelectionStateDrawn;
  58. };  // IListBoxDrawItemEvent
  59.  
  60.  
  61. class IListBoxSizeItemEvent : public IControlEvent {
  62. typedef IControlEvent
  63.   Inherited;
  64. public:
  65. /*------------------------------- Constructors -------------------------------*/
  66.   IListBoxSizeItemEvent ( IEvent& event );
  67.  
  68. virtual
  69.  ~IListBoxSizeItemEvent ( );
  70.  
  71. /*--------------------------- Item Identification ----------------------------*/
  72. unsigned long
  73.   itemIndex ( ) const;
  74.  
  75. /*------------------------------- Item Sizing --------------------------------*/
  76. IListBoxSizeItemEvent
  77.  &setItemSize ( const ISize& itemSize );
  78. ISize
  79.   itemSize    ( ) const;
  80.  
  81. private:
  82. /*----------------------------- Hidden Functions -----------------------------*/
  83. IEvent
  84.  &setResult  ( const IEventResult& eventResult );
  85. };  // IListBoxSizeItemEvent
  86.  
  87.  
  88. #pragma pack()
  89.  
  90. #endif /* _ILBDIEVT_ */
  91.