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

  1. #ifndef _IOBJWIN_
  2. #define _IOBJWIN_
  3. /*******************************************************************************
  4. * FILE NAME: iobjwin.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     IObjectWindow -  Invisible Window Class                                  *
  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 _IWINDOW_
  19.   #include <iwindow.hpp>
  20. #endif
  21.  
  22. /*----------------------------------------------------------------------------*/
  23. /* Align classes on four byte boundary.                                       */
  24. /*----------------------------------------------------------------------------*/
  25. #pragma pack(4)
  26.  
  27. /*----------------------------------------------------------------------------*/
  28. /* Turn off warning for compiler generated copy/assignment                    */
  29. /*----------------------------------------------------------------------------*/
  30. #pragma info(nocpy)
  31.  
  32. class IObjectWindow : public IWindow {
  33. typedef IWindow
  34.   Inherited;
  35. /*******************************************************************************
  36. * The IObjectWindow class allows you to create object windows.  Object         *
  37. * windows are invisible windows that process window events.  These windows     *
  38. * have minimal system overhead because they are created with a parent of       *
  39. * HWND_OBJECT.  Essentially, these windows only see messages that are          *
  40. * explicitly sent to them.                                                     *
  41. *                                                                              *
  42. * One possible use of this class would be to process a set of user-defined     *
  43. * messages.                                                                    *
  44. *******************************************************************************/
  45. public:
  46. /*------------------------ Constructor -----------------------------------------
  47. | The only way to construct instances of this class is to use the default      |
  48. | constructor.  The default constructor is used to create an IObjectWindow     |
  49. | that starts handling events immediately.                                     |
  50. ------------------------------------------------------------------------------*/
  51.   IObjectWindow ( );
  52. virtual
  53.  ~IObjectWindow ( );
  54.  
  55. }; // IObjectWindow
  56.  
  57. /*----------------------------------------------------------------------------*/
  58. /* Resume compiler default packing and warning messages.                      */
  59. /*----------------------------------------------------------------------------*/
  60. #pragma pack()
  61. #pragma info(restore)
  62.  
  63. #endif
  64.