FontInstaller.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:1k
- #pragma once
- #include <afxtempl.h>
- class CFontInstaller
- {
- HANDLE (WINAPI *pAddFontMemResourceEx)(PVOID,DWORD,PVOID,DWORD*);
- BOOL (WINAPI *pRemoveFontMemResourceEx)(HANDLE);
- int (WINAPI *pAddFontResourceEx)(LPCTSTR,DWORD,PVOID);
- BOOL (WINAPI *pRemoveFontResourceEx)(LPCTSTR,DWORD,PVOID);
- BOOL (WINAPI *pMoveFileEx)(LPCTSTR, LPCTSTR,DWORD);
- CList<HANDLE> m_fonts;
- CList<CString> m_files;
- bool InstallFontMemory(const void* pData, UINT len);
- bool InstallFontFile(const void* pData, UINT len);
- public:
- CFontInstaller();
- virtual ~CFontInstaller();
- bool InstallFont(const CArray<BYTE>& data);
- bool InstallFont(const void* pData, UINT len);
- void UninstallFonts();
- };