home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 11.ddi / OWLSRC.PAK / COMMDIAL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  923 b   |  33 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1992, 1993 by Borland International
  3. //   source\owl\commdial.cpp
  4. //   Implementation of Common Dialog abstract class
  5. //----------------------------------------------------------------------------
  6. #include <owl\owlpch.h>
  7. #include <owl\commdial.h>
  8. #include <owl\applicat.h>
  9.  
  10. DEFINE_RESPONSE_TABLE1(TCommonDialog, TDialog)
  11.   EV_WM_CLOSE,
  12.   EV_COMMAND(IDOK, CmOkCancel),
  13.   EV_COMMAND(IDCANCEL, CmOkCancel),
  14. END_RESPONSE_TABLE;
  15.  
  16. IMPLEMENT_CASTABLE(TCommonDialog);
  17.  
  18. TCommonDialog::TCommonDialog(TWindow*        parent, 
  19.                              const char far* title,
  20.                              TModule*        module)
  21.   : TDialog(parent, 0, module),
  22.     CDTitle(title)
  23. {
  24. }
  25.  
  26. void
  27. TCommonDialog::SetupWindow()
  28. {
  29.   TDialog::SetupWindow();
  30.   if (CDTitle)
  31.     SetCaption(CDTitle);
  32. }
  33.