home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / SOURCE.ZIP / pmwrap.h < prev    next >
C/C++ Source or Header  |  1995-08-27  |  1KB  |  33 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: pmwrap.h 1.1 1995/08/25 08:24:00 teb Exp $ */
  8.  
  9. #ifndef __PMWRAP_H__
  10. #define __PMWRAP_H__
  11.  
  12. #include"window.h"
  13.  
  14. /************************************************************
  15.  *
  16.  *   This class effectively forms a means to wrap Presentation Manager
  17.  *   Window classes inside of a Developer Window Object descended
  18.  *   from the class TWindow.  Using the methods in the TWindow class, 
  19.  *   it is easy to override default behaviors of any PM WndClass which
  20.  *   is wrapped with this class.  The init function member simply subclasses
  21.  *   the window proc, setting the TWindow data member oldWndProc to the
  22.  *   original wndproc. 
  23.  **************************************************************/
  24. class TPMWrapWindow : public TWindow
  25. {
  26.  
  27.    public:
  28.      TPMWrapWindow(ULONG id, TWinBase *parent);
  29.      virtual BOOL init();
  30. };
  31.  
  32. #endif
  33.