home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 2.ddi / OWLSRC.ZIP / BSTATBMP.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.3 KB  |  42 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. /* --------------------------------------------------------
  4.   BSTATBMP.CPP
  5.   Defines type TBStaticBmp.  This is a static control that draws
  6.   a bitmap
  7.   -------------------------------------------------------- */
  8.  
  9. #include "bstatbmp.h"
  10. #include "bwcc.h"
  11.  
  12. /* Constructor for a TBStaticBmp object.  Initializes its data fields using
  13.   parameters passed and default values. */
  14.  
  15. TBStaticBmp::TBStaticBmp(PTWindowsObject AParent, int AnId, LPSTR AText,
  16.                int X, int Y, int W, int H, PTModule AModule)
  17.                       : TControl(AParent, AnId, AText, X, Y, W, H, AModule)
  18. {
  19.   Attr.Style |= BBS_BITMAP;
  20.   DisableTransfer();
  21. }
  22.  
  23. /* Constructor for a TBStaticBmp to be associated with a MS-Windows
  24.    interface element created by MS-Windows from a resource definition.
  25.    Initializes its data fields using passed parameters.  Disables
  26.    transfer of state data for the TBStaticBmp. */
  27.  
  28. TBStaticBmp::TBStaticBmp(PTWindowsObject AParent, int ResourceId,
  29.                PTModule AModule)
  30.                  : TControl(AParent, ResourceId, AModule)
  31. {
  32.   DisableTransfer();
  33. }
  34.  
  35. PTStreamable TBStaticBmp::build()
  36. {
  37.   return new TBStaticBmp(streamableInit);
  38. }
  39.  
  40. TStreamableClass RegBStaticBmp("TBStaticBmp", TBStaticBmp::build,
  41.                 __DELTA(TBStaticBmp));
  42.