home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / COMMDIAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.4 KB  |  51 lines

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