home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab04 / ex03 / fileopenex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.5 KB  |  58 lines

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