cgfiltyp.h
上传用户:dengkfang
上传日期:2008-12-30
资源大小:5233k
文件大小:3k
源码类别:

CA认证

开发平台:

Visual C++

  1. //- -----------------------------------------------------------------
  2. //- (C) Copyright 2000 Blake V. Miller
  3. //- All Rights Reserved.
  4. //- -----------------------------------------------------------------
  5. //- File : CGFILTYP.H
  6. //- Author : Blake Miller
  7. //- Version : June 16, 2000
  8. //- Purpose : File Type Access
  9. //- -----------------------------------------------------------------
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif
  13. #ifndef __CGFILTYP_H__
  14. #define __CGFILTYP_H__
  15. #ifdef  __cplusplus
  16. class CGCFileTypeAccess : public CObject
  17. {
  18. DECLARE_DYNAMIC(CGCFileTypeAccess)
  19. public:
  20. CGCFileTypeAccess();
  21. virtual ~CGCFileTypeAccess();
  22. virtual void ClearAllData(void);
  23. //- ----------------------------------------
  24. //- Effect Registry
  25. virtual BOOL RegSetAllInfo (void);
  26. virtual BOOL RegSetExtension (void);
  27. virtual BOOL RegSetDocumentType (void);
  28. virtual BOOL RegSetCLSID (void);
  29. virtual BOOL RegSetShellInfo (void);
  30. //- ----------------------------------------
  31. //- Modify Member Variables
  32. void SetExtension (LPCTSTR);
  33. void GetExtension (CString&) const;
  34. void SetContentType (LPCTSTR);
  35. void GetContentType (CString&) const;
  36. void SetShellOpenCommand (LPCTSTR);
  37. void GetShellOpenCommand (CString&) const;
  38. void SetShellNewCommand (LPCTSTR);
  39. void GetShellNewCommand (CString&) const;
  40. void SetShellNewFileName (LPCTSTR);
  41. void GetShellNewFileName (CString&) const;
  42. void SetDocumentClassName (LPCTSTR);
  43. void GetDocumentClassName (CString&) const;
  44. void SetDocumentDescription (LPCTSTR);
  45. void GetDocumentDescription (CString&) const;
  46. void SetDocumentCLSID (LPCTSTR);
  47. void GetDocumentCLSID (CString&) const;
  48. void SetDocumentCurrentVersion (LPCTSTR);
  49. void GetDocumentCurrentVersion (CString&) const;
  50. void SetDocumentDefaultIcon (LPCTSTR);
  51. void GetDocumentDefaultIcon (CString&) const;
  52. void SetDocumentShellOpenCommand (LPCTSTR);
  53. void GetDocumentShellOpenCommand (CString&) const;
  54. protected:
  55. BOOL SetRegistryValue(HKEY, LPCTSTR, LPCTSTR, LPCTSTR);
  56. CString m_csExtension;
  57. CString m_csContentType;
  58. CString m_csShellOpenCommand;
  59. CString m_csShellNewCommand;
  60. CString m_csShellNewFileName;
  61. CString m_csDocumentClassName;
  62. CString m_csDocumentDescription;
  63. CString m_csDocumentCLSID;
  64. CString m_csDocumentCurrentVersion;
  65. CString m_csDocumentDefaultIcon;
  66. CString m_csDocumentShellOpenCommand;
  67. };
  68. #endif // __cplusplus
  69. #endif // __CGFILTYP_H__
  70. //- -----------------------------------------------------------------
  71. //- END CGFILTYP.H Header File
  72. //- -----------------------------------------------------------------