home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / CONTROLG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.4 KB  |  52 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1992, 1993 by Borland International
  3. //   include\owl\controlg.h
  4. //   Class TControlGadget definition
  5. //----------------------------------------------------------------------------
  6. #if !defined(__OWL_CONTROLG_H)
  7. #define __OWL_CONTROLG_H
  8.  
  9. #if !defined(__OWL_GADGET_H)
  10.   #include "owl\gadget.h"
  11. #endif
  12.  
  13. //
  14. //  class TControlGadget
  15. //  ----- --------------
  16. //
  17. class _OWLCLASS TControlGadget : public TGadget {
  18.   public:
  19.     TControlGadget(TWindow& control, TBorderStyle = None);
  20.    ~TControlGadget();
  21.  
  22.   protected:
  23.     void           Inserted();
  24.     void           Removed();
  25.  
  26.     void           Invalidate(BOOL erase = TRUE);
  27.     void           InvalidateRect(const TRect& rect, // receiver's coord system
  28.                                   BOOL  erase = TRUE);
  29.     void           Update();  // Paint now if possible
  30.  
  31.     void           SetBounds(TRect& rect);
  32.  
  33.     //
  34.     // computes the area excluding the borders and margins
  35.     //
  36.     void           GetInnerRect(TRect& rect);
  37.  
  38.     void           GetDesiredSize(TSize& size);
  39.  
  40.   protected:
  41.     TWindow*         Control;
  42.  
  43.   private:
  44.     //
  45.     // hidden to prevent accidental copying or assignment
  46.     //
  47.     TControlGadget(const TControlGadget&);
  48.     TControlGadget& operator =(const TControlGadget&);
  49. };
  50.  
  51. #endif  // __OWL_CONTROLG_H
  52.