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