home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLBWCC.PAK / BGRPBOX.CPP < prev    next >
C/C++ Source or Header  |  1995-08-29  |  1KB  |  41 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   Implementation of class TBGroupBox.  This defines the basic behavior
  4. //   for all custom control group boxes.
  5. //----------------------------------------------------------------------------
  6. #include <owl\owlpch.h>
  7. #include "bgrpbox.h"
  8. #include "bwcc.h"
  9.  
  10. IMPLEMENT_STREAMABLE_FROM_BASE(TBGroupBox, TGroupBox);
  11.  
  12. //
  13. // constructor for a TBGroupBox object
  14. //
  15. TBGroupBox::TBGroupBox(TWindow*        parent,
  16.                        int             id,
  17.                        const char far* text,
  18.                        int x, int y, int w, int h,
  19.                        TModule*        module)
  20.   : TGroupBox(parent, id, text, x, y, w, h, module)
  21. {
  22.   Attr.Style = (Attr.Style & ~BS_GROUPBOX) | BSS_GROUP;
  23. }
  24.  
  25. //
  26. // constructor for a TBGroupBox to be associated with a MS-Windows interface
  27. // element created by MS-Windows from a resource definition
  28. //
  29. TBGroupBox::TBGroupBox(TWindow* parent,
  30.                        int      resourceId,
  31.                        TModule* module)
  32.   : TGroupBox(parent, resourceId, module)
  33. {
  34. }
  35.  
  36. char far*
  37. TBGroupBox::GetClassName()
  38. {
  39.   return SHADE_CLASS;
  40. }
  41.