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

  1. #ifndef _IVBDRAGH_
  2.   #define _IVBDRAGH_
  3.  
  4. /*******************************************************************************
  5. * FILE NAME: ivbdragh.hpp                                                      *
  6. *                                                                              *
  7. * DESCRIPTION:                                                                 *
  8. *   Declaration of the class(es):                                              *
  9. *    IVBDragDropHandler             - Drag/Drop Handler                        *
  10. *                                                                              *
  11. * COPYRIGHT:                                                                   *
  12. *   IBM(R) VisualAge(TM) for C++                                               *
  13. *   (C) Copyright International Business Machines Corporation 1991, 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. *   This program will not run in DOS mode.                                     *
  19. *                                                                              *
  20. *******************************************************************************/
  21.  
  22. #ifndef _IDMHNDLR_
  23.   #include <idmhndlr.hpp>
  24. #endif
  25.  
  26. #ifndef _IHANDLER_
  27.   #include <ihandler.hpp>
  28. #endif
  29.  
  30. /*-------------------------- Pragma Library Support --------------------------*/
  31. #ifndef __NO_DEFAULT_LIBS__
  32.   #ifdef __OS2__
  33.     #ifdef __IMPORTLIB__
  34.        #pragma library("CPPOOV3I.LIB")
  35.     #else
  36.        #pragma library("CPPOOV3.LIB")
  37.     #endif
  38.   #endif
  39.   #ifdef __WINDOWS__
  40.     #ifdef __IMPORTLIB__
  41.        #pragma library("CPPWOV3I.LIB")
  42.     #else
  43.        #pragma library("CPPWOV3.LIB")
  44.     #endif
  45.   #endif
  46. #endif
  47.  
  48. class IWindow;
  49. class IEntryField;
  50. class IMultiLineEdit;
  51. class IContainerControl;
  52. class IToolBarButton;
  53. class IToolBar;
  54. class IMenuBar;
  55. class ISubmenu;
  56.  
  57. /*----------------------------------------------------------------------------*/
  58. /* Align classes on four byte boundary.                                       */
  59. /*----------------------------------------------------------------------------*/
  60. #pragma pack(4)
  61.  
  62. //**************************************************************************
  63. // Class:   IVBDragDropHandler                                             *
  64. //                                                                         *
  65. // Purpose: Subclass of IHandler so that make it easy to add drag/drop     *
  66. //          to a control.                                                  *
  67. //                                                                         *
  68. //**************************************************************************
  69. class IVBDragDropHandler : public IHandler
  70. {
  71. public:
  72.   IVBDragDropHandler ();
  73.  
  74. virtual IHandler
  75.  &handleEventsFor ( IWindow * window ),
  76.  &handleEventsFor ( IEntryField * window ),
  77.  &handleEventsFor ( IMultiLineEdit * window ),
  78.  &handleEventsFor ( IContainerControl * window ),
  79.  &handleEventsFor ( IToolBarButton * window ),
  80.  &handleEventsFor ( IMenuBar * window ),
  81.  &handleEventsFor ( IToolBar * window ),
  82.  &stopHandlingEventsFor ( IWindow *window );
  83.  
  84. protected:
  85.   virtual Boolean dispatchHandlerEvent ( IEvent &evt );
  86. };
  87.  
  88. /*----------------------------------------------------------------------------*/
  89. /* Resume compiler default packing.                                           */
  90. /*----------------------------------------------------------------------------*/
  91. #pragma pack()
  92.  
  93. #endif
  94.