home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 2.ddi / OWLSRC.ZIP / BWINDOW.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  796 b   |  31 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. /* --------------------------------------------------------
  4.   BWINDOW.CPP
  5.   Defines type TBWindow.
  6.   -------------------------------------------------------- */
  7.  
  8. #include "applicat.h"
  9. #include "bwindow.h"
  10.  
  11. /* Constructor for a TBWindow object. */
  12. TBWindow::TBWindow(PTWindowsObject AParent, LPSTR ATitle,
  13.            PTModule AModule)
  14.      : TWindow(AParent, ATitle, AModule)
  15. {
  16. }
  17.  
  18. void TBWindow::GetWindowClass(WNDCLASS& AWndClass)
  19. {
  20.       TWindow::GetWindowClass(AWndClass);
  21.       AWndClass.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
  22. }
  23.  
  24. PTStreamable TBWindow::build()
  25. {
  26.   return new TBWindow(streamableInit);
  27. }
  28.  
  29. TStreamableClass RegBWindow("TBWindow", TBWindow::build,
  30.                 __DELTA(TBWindow));
  31.