home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWL1.PAK / BBUTTON.CPP < prev    next >
Text File  |  1995-08-29  |  1KB  |  34 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. /* --------------------------------------------------------
  4.   BBUTTON.CPP
  5.   Defines type TBButton.  This defines custom control push button
  6.   -------------------------------------------------------- */
  7.  
  8. #include "bbutton.h"
  9. #include "bwcc.h"
  10.  
  11. /* Constructor for a TBButton object.  Initializes its data fields using
  12.   supplied parameters and default values. */
  13. TBButton::TBButton(PTWindowsObject AParent, int AnId, LPSTR AText, int X,
  14.                  int Y, int W, int H, BOOL IsDefault, PTModule AModule)
  15.                       : TButton(AParent, AnId, AText, X, Y, W, H, IsDefault,
  16.                     AModule)
  17. {
  18. }
  19.  
  20. /* Constructor for a TBButton to be associated with a MS-Windows
  21.    interface element created by MS-Windows from a resource definition.
  22.    Initializes its data fields using supplied parameters. */
  23. TBButton::TBButton(PTWindowsObject AParent, int ResourceId, PTModule AModule)
  24.                  : TButton(AParent, ResourceId, AModule)
  25. {
  26. }
  27.  
  28. PTStreamable TBButton::build()
  29. {
  30.   return new TBButton(streamableInit);
  31. }
  32.  
  33. TStreamableClass RegBButton("TBButton", TBButton::build, __DELTA(TBButton));
  34.