home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / owlsrc.pak / COMMDIAL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-24  |  919 b   |  35 lines

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