home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 21.ddi / OWLBWCC.PAK / BSTATBMP.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.3 KB  |  45 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   Implementaion of class TBStaticBmp.  This is a static control that draws
  4. //   a bitmap
  5. //----------------------------------------------------------------------------
  6. #include <owl\owlpch.h>
  7. #include "bstatbmp.h"
  8. #include "bwcc.h"
  9.  
  10. IMPLEMENT_STREAMABLE_FROM_BASE(TBStaticBmp, TControl);
  11.  
  12. //
  13. // constructor for a TBStaticBmp object
  14. //
  15. TBStaticBmp::TBStaticBmp(TWindow*        parent,
  16.                          int             id,
  17.                          const char far* text,
  18.                          int x, int y, int w, int h,
  19.                          TModule*        module)
  20.   : TControl(parent, id, text, x, y, w, h, module)
  21. {
  22.   Attr.Style |= BBS_BITMAP;
  23.   DisableTransfer();
  24. }
  25.  
  26. //
  27. // constructor for a TBStaticBmp to be associated with a MS-Windows
  28. // interface element created by MS-Windows from a resource definition.
  29. //
  30. // disables transfer of state data for the TBStaticBmp
  31. //
  32. TBStaticBmp::TBStaticBmp(TWindow* parent,
  33.                          int      resourceId,
  34.                          TModule* module)
  35.   : TControl(parent, resourceId, module)
  36. {
  37.   DisableTransfer();
  38. }
  39.  
  40. char far* 
  41. TBStaticBmp::GetClassName()
  42. {
  43.   return BUTTON_CLASS;
  44. }
  45.