home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLINC.PAK / COMMDIAL.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  1KB  |  52 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Definition of Common Dialog abstract base class
  6. //----------------------------------------------------------------------------
  7. #if !defined(OWL_COMMDIAL_H)
  8. #define OWL_COMMDIAL_H
  9.  
  10. #if !defined(OWL_DIALOG_H)
  11. # include <owl/dialog.h>
  12. #endif
  13. #if !defined(__COMMDLG_H)
  14. # include <commdlg.h>
  15. #endif
  16. #if !defined(__CDERR_H)
  17. # include <cderr.h>
  18. #endif
  19.  
  20. class _OWLCLASS TCommonDialog : public TDialog {
  21.   public:
  22.     TCommonDialog(TWindow* parent, const char far* title = 0, TModule* module = 0);
  23.  
  24.     HWND DoCreate() {return 0;}
  25.     int  DoExecute() {return IDCANCEL;}
  26.  
  27.   protected:
  28.     const char far* CDTitle;
  29.  
  30.     void    SetupWindow();
  31.  
  32.     // Default behavior inline for message response functions
  33.     //
  34.     void CmOkCancel() {DefaultProcessing();} //EV_COMMAND(IDOK or IDCANCEL
  35.     void EvClose() {DefaultProcessing();}    //EV_CLOSE
  36.     void CmHelp() {DefaultProcessing();}     //EV_COMMAND(pshHelp,
  37.  
  38.   private:
  39.     TCommonDialog(const TCommonDialog&);
  40.     TCommonDialog& operator=(const TCommonDialog&);
  41.  
  42.   DECLARE_RESPONSE_TABLE(TCommonDialog);
  43.   DECLARE_CASTABLE;
  44. };
  45.  
  46. //
  47. // Used internally by common dialogs
  48. //
  49. extern TProcInstance StdDlgProcInstance;
  50.  
  51. #endif  // OWL_COMMDIAL_H
  52.