home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c05 / lab06 / baseline / dlgfilex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  51 lines

  1. // DlgFilex.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CFileOpenEx dialog
  6.  
  7. class CFileOpenEx : public CFileDialog
  8. {
  9. // Construction
  10. public:
  11.     CFileOpenEx(LPCTSTR lpszDefExt = NULL,
  12.                 LPCTSTR lpszFileName = NULL,
  13.                 DWORD dwFlags = OFN_HIDEREADONLY,
  14.                 LPCTSTR lpszFilter = NULL,
  15.                 CWnd* pParentWnd = NULL);
  16.  
  17. // Dialog Data
  18.     //{{AFX_DATA(CFileIOpenEx)
  19.     enum { IDD = IDD_FILEOPEN_EX };
  20.     CRichEditCtrl    m_RichEdit;
  21.     //}}AFX_DATA
  22.  
  23.  
  24. // Overrides
  25.     // ClassWizard generated virtual function overrides
  26.     //{{AFX_VIRTUAL(CFileIOpenEx)
  27.     public:
  28.     virtual int DoModal();
  29.     protected:
  30.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  31.     virtual void OnFileNameChange();
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. protected:
  36.     BOOL     m_bFirstTime;
  37.     BOOL    m_bUnfolded;
  38.  
  39.     void    Expand(const BOOL bExpand = TRUE);
  40.     void    EnableOptionalChildren (    const CRect& rectBasic,
  41.                                 const BOOL bEnable = TRUE );
  42.     void    PreviewContents(LPCSTR lpszFilespec);
  43.  
  44.     // Generated message map functions
  45.     //{{AFX_MSG(CFileIOpenEx)
  46.     afx_msg void OnSize(UINT nType, int cx, int cy);
  47.     afx_msg void CFileOpenEx::OnButtonOptions();
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51.