home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dovetail.zip / control.h < prev    next >
C/C++ Source or Header  |  1994-04-05  |  692b  |  26 lines

  1. /*
  2.   The basic control type.  This handles the basic, common functionality
  3.   of all controls
  4. */
  5. #ifndef _CONTROL_INC
  6. #define _CONTROL_INC
  7. #define INCL_WIN
  8. #include <os2.h>  // determine min include needed for HWND
  9.  
  10.  
  11. class Control // base class for all controls
  12.    {
  13.     friend class Rbutton; // for access to hWnd and fCreated.
  14.     protected:
  15.             HWND     hWnd;
  16.             BOOL     fCreated;
  17.     public:
  18.                      Control (HWND,ULONG);
  19.                      Control () {fCreated=TRUE; }
  20.    virtual          ~Control ();
  21.    virtual VOID      SetPos(SHORT, SHORT, SHORT, SHORT);
  22.    virtual BOOL      Show();
  23.    virtual BOOL      Hide();
  24.    };
  25. #endif
  26.