home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / mobjm260 / smclient.cp_ / smclient.cp
Encoding:
Text File  |  1994-09-06  |  1.1 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. //  SMCLIENT.CPP
  10.  
  11. #include <owl\owlpch.h>
  12. #include <sfx\sfx200.h>
  13. #include <sfx\smdi.h>
  14.  
  15. DEFINE_RESPONSE_TABLE1(TSFXMDIClient, TMDIClient)
  16. END_RESPONSE_TABLE;
  17.  
  18. // constructor for a TSFXMDIClient
  19.  
  20. TSFXMDIClient::TSFXMDIClient(BOOL sfxClient, TModule* module)
  21.     :TMDIClient(module)
  22. {
  23.     TWindow::Init(0, 0, module);
  24.     if (sfxClient)
  25.         IsSFXClient = TRUE;
  26.     else
  27.         IsSFXClient = FALSE;
  28.     Attr.Style &= ~(WS_BORDER);
  29. }
  30.  
  31. char far*
  32. TSFXMDIClient::GetClassName()
  33. {
  34.     if (IsSFXClient)
  35.         return "SFXMDICLIENT";
  36.     else
  37.         return "SFX3DMDICLIENT";
  38. }
  39.  
  40. IMPLEMENT_STREAMABLE2(TSFXMDIClient, TMDIClient, TWindow);
  41.  
  42. void*
  43. TSFXMDIClient::Streamer::Read(ipstream& is, uint32 /*version*/) const
  44. {
  45.     ReadVirtualBase((TMDIClient*)GetObject(), is);
  46.     return GetObject();
  47. }
  48.  
  49. void
  50. TSFXMDIClient::Streamer::Write(opstream& os) const
  51. {
  52.     WriteVirtualBase((TMDIClient*)GetObject(), os);
  53. }
  54.  
  55.