home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / mobjm260 / sdframe.cp_ / sdframe.cp
Encoding:
Text File  |  1994-09-06  |  1.4 KB  |  56 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. //  SDFRAME.CPP
  10.  
  11. #include <owl\owlpch.h>
  12. #include <sfx\sfx200.h>
  13. #include <sfx\sdframe.h>
  14.  
  15. DEFINE_RESPONSE_TABLE1(TSFXDecoratedFrame, TDecoratedFrame)
  16. END_RESPONSE_TABLE;
  17.  
  18. //    constructor for a TSFXDecoratedFrame object
  19.  
  20. TSFXDecoratedFrame::TSFXDecoratedFrame(TWindow*        parent,
  21.                                        const char far* title,
  22.                                        TWindow*        clientWnd,
  23.                                        BOOL            sfxCaption,
  24.                                        BOOL            trackMenuSelection,
  25.                                        TModule*        module)
  26.     :TDecoratedFrame(parent, title, clientWnd, trackMenuSelection, module)
  27. {
  28.     TWindow::Init(0, title, module);
  29.     TFrameWindow::Init(clientWnd, FALSE);
  30.     Attr.Style |= MWS_3DFRAME;
  31.     if (sfxCaption)
  32.         Attr.Style |= MWS_SFXCAPTION;
  33. }
  34.  
  35. LRESULT
  36. TSFXDecoratedFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
  37. {
  38.     return SFXDefWindowProc(HWindow, message, wParam, lParam);
  39. }
  40.  
  41. IMPLEMENT_STREAMABLE3(TSFXDecoratedFrame, TDecoratedFrame, TFrameWindow, TWindow);
  42.  
  43. void*
  44. TSFXDecoratedFrame::Streamer::Read(ipstream& is, uint32 /*version*/) const
  45. {
  46.     ReadBaseObject((TDecoratedFrame*)GetObject(), is);
  47.     return GetObject();
  48. }
  49.  
  50. void
  51. TSFXDecoratedFrame::Streamer::Write(opstream& os) const
  52. {
  53.     WriteBaseObject((TDecoratedFrame*)GetObject(), os);
  54. }
  55.  
  56.