home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dho.zip / DHO / SRC / CONTROL.H < prev    next >
C/C++ Source or Header  |  1995-08-27  |  898b  |  43 lines

  1. /****************************************/
  2. /*    Developer Helper Object Set       */
  3. /*  (C) 1994-95 Thomas E. Bednarz, Jr.  */
  4. /*     All rights reserved              */
  5. /***************************************/
  6.  
  7. /* $Id: control.h 1.5 1995/08/13 03:21:12 teb Exp $ */
  8.  
  9. #ifndef __CONTROL_H__
  10. #define __CONTROL_H__
  11.  
  12.  
  13.  
  14. #include<object.h>
  15. #include<winbase.h>
  16.  
  17. enum justification {left, center, right};
  18.  
  19.  
  20. class TControl : public TObject
  21. {
  22.  
  23.    protected:
  24.       TWinBase *fParent;
  25.       ULONG fResource;
  26.       HWND hwndControl;
  27.    public:
  28.       TControl(TWinBase *parent, ULONG resource);
  29.       TControl(TWinBase *parent);
  30.       virtual ~TControl();
  31.       MRESULT SendMessage(ULONG ul, MPARAM mp1, MPARAM mp2);
  32.  
  33.       virtual const char *getClassName();
  34.       void showControl();
  35.       
  36.       void enable();
  37.  
  38.       void disable();
  39. };
  40.  
  41. #endif  /* control.h */
  42.  
  43.