home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWL1.PAK / BWINDOW.CPP < prev    next >
Text File  |  1995-08-29  |  796b  |  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.