home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / wins / fileitem.h < prev    next >
C/C++ Source or Header  |  1998-04-08  |  1KB  |  43 lines

  1. // FileItem.h: interface for the CFileItem class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_FileItem_H__08822C83_41B8_11D1_82B9_00A0C91BC942__INCLUDED_)
  6. #define AFX_FileItem_H__08822C83_41B8_11D1_82B9_00A0C91BC942__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. class CFileItem  
  13. {
  14. public:
  15.     BOOL FOpenedInDebug();
  16.     CRect& GetRect();
  17.     CRect& GetDbgRect();
  18.     void Touch(CRect& rectWnd, BOOL fInDebugger, BOOL fTouchTime);
  19.     CString& GetDir();
  20.     BOOL IsFile(LPCTSTR szFile);
  21.     void SetFile(LPCTSTR szFile);
  22.     CTime& GetTime();
  23.     CString& GetFile();
  24.     void SetDir(LPCTSTR szDir);
  25.     BOOL IsDir(LPCTSTR szDir);
  26.     CFileItem();
  27.     CFileItem(LPCTSTR szDir,LPCTSTR szFile, CRect& rectWnd, BOOL fInDebugger);
  28.     virtual ~CFileItem();
  29.  
  30. protected:
  31.     BOOL m_fOpenedInDebug;
  32.     int m_iViewType;
  33.     CString m_strFile;
  34.     CTime m_timeLast;
  35.     CString m_strDir;
  36.     CRect m_rectWnd;
  37.     CRect m_rectWndDbg;
  38.     BOOL m_fInDebugger;
  39.     BOOL m_fNotInDebugger;
  40. };
  41.  
  42. #endif // !defined(AFX_FileItem_H__08822C83_41B8_11D1_82B9_00A0C91BC942__INCLUDED_)
  43.