home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / mobjm260 / sbitmap.cp_ / sbitmap.cp
Encoding:
Text File  |  1994-09-06  |  912 b   |  43 lines

  1. //    Microworks ObjectMate 2.6
  2. //
  3. //  "SFX Class Library"
  4. //
  5. //    An ObjectWindows 2.0 extension for Borland C++ 4.0
  6. //
  7. //    Copyright 1992-94 Microworks Sydney, Australia.
  8. //
  9. //  SBITMAP.CPP 
  10.  
  11. #include <owl\owlpch.h>
  12. #include <sfx\sfx200.h>
  13. #include "sfx\sbitmap.h"
  14.  
  15. IMPLEMENT_STREAMABLE_FROM_BASE(TSFXBitmap, TControl);
  16.  
  17. //    constructor for a TSFXBitmap object
  18.  
  19. TSFXBitmap::TSFXBitmap(TWindow*        parent,
  20.                        int             id,
  21.                        int x, int y,
  22.                        TModule*        module)
  23.     :TControl(parent, id, "", x, y, 0, 0, module)
  24. {
  25.     Attr.Style = (WS_CHILD | WS_VISIBLE | WS_GROUP | MBS_BITMAP);
  26.     DisableTransfer();
  27. }
  28.  
  29. //    constructor for a TSFXBitmap resource object
  30.  
  31. TSFXBitmap::TSFXBitmap(TWindow* parent, int resourceId, TModule* module)
  32.     :TControl(parent, resourceId, module)
  33. {
  34.     DisableTransfer();
  35. }
  36.  
  37. char far*
  38. TSFXBitmap::GetClassName()
  39. {
  40.     return "SFXBUTTON";
  41. }
  42.  
  43.