home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / mobjm260 / swindow.cp_ / swindow.cp
Encoding:
Text File  |  1994-09-06  |  944 b   |  46 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. //  SWINDOW.CPP
  10.  
  11. #include <owl\owlpch.h>
  12. #include <sfx\sfx200.h>
  13. #include <sfx\swindow.h>
  14.  
  15. DEFINE_RESPONSE_TABLE1(TSFXWindow, TWindow)
  16. END_RESPONSE_TABLE;
  17.  
  18. IMPLEMENT_STREAMABLE_FROM_BASE(TSFXWindow, TWindow);
  19.  
  20. //    constructor for a TSFXWindow object
  21.  
  22. TSFXWindow::TSFXWindow(TWindow*        parent,
  23.                        const char far* title,
  24.                        TModule*        module)
  25. {
  26.     TWindow::Init(parent, title, module);
  27. }
  28.  
  29. void
  30. TSFXWindow::GetWindowClass(WNDCLASS& wndClass)
  31. {
  32.     TWindow::GetWindowClass(wndClass);
  33.     wndClass.hbrBackground = 0;
  34.     wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
  35. }
  36.  
  37. LRESULT
  38. TSFXWindow::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
  39. {
  40.     return SFXDefWindowProc(HWindow, message, wParam, lParam);
  41. }
  42.  
  43.  
  44.  
  45.  
  46.