home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / INBDIEVT.HPP < prev    next >
C/C++ Source or Header  |  1993-10-22  |  4KB  |  71 lines

  1. #ifndef _INBDIEVT_
  2.   #define _INBDIEVT_
  3. /*******************************************************************************
  4. * FILE NAME: inbdievt.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     INotebookDrawItemEvent - Draw-item event class for a notebook page tab   *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   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. #ifndef _IDIEVT_
  19.   #include <idievt.hpp>
  20. #endif
  21.  
  22. /*----------------------------------------------------------------------------*/
  23. /* Align classes on four byte boundary.                                       */
  24. /*----------------------------------------------------------------------------*/
  25. #pragma pack(4)
  26.  
  27. // Forward declarations for other classes:
  28. class IPageHandle;
  29.  
  30.  
  31. class INotebookDrawItemEvent : public IDrawItemEvent {
  32. typedef IDrawItemEvent
  33.   Inherited;
  34. /*******************************************************************************
  35. * The INotebookDrawItemEvent class provides event information for drawing a    *
  36. * tab on a notebook page.  This draw-item event is generated only if a         *
  37. * notebook page has a tab that does not have text or a bit map.                *
  38. *******************************************************************************/
  39. public:
  40. /*------------------------------- Constructor ----------------------------------
  41. | The only way to construct instances of this class is from an instance of     |
  42. | the IEvent class.                                                            |
  43. ------------------------------------------------------------------------------*/
  44.   INotebookDrawItemEvent ( IEvent& event );
  45.  
  46. virtual
  47.   INotebookDrawItemEvent :: ~INotebookDrawItemEvent ( );
  48.  
  49. /*----------------------------- Page Information -------------------------------
  50. | The following function returns information about the notebook page:          |
  51. |   page - Returns a handle to the page whose tab is to be drawn.              |
  52. ------------------------------------------------------------------------------*/
  53. virtual IPageHandle
  54.   page                   ( ) const;
  55.  
  56. /*-------------------------------- Overrrides ----------------------------------
  57. | The following function is overridden to return an identifier for the page:   |
  58. |   itemId - Returns an ID for the page whose tab is to be drawn.  This value  |
  59. |            is used by the page function to return an IPageHandle.            |
  60. ------------------------------------------------------------------------------*/
  61. virtual unsigned long
  62.   itemId                 ( ) const;
  63. }; // INotebookDrawItemEvent
  64.  
  65. /*----------------------------------------------------------------------------*/
  66. /* Resume compiler default packing.                                           */
  67. /*----------------------------------------------------------------------------*/
  68. #pragma pack()
  69.  
  70. #endif /* _INBDIEVT_ */
  71.