contentmgr.h
来自「管理项目进度工具的原代码」· C头文件 代码 · 共 53 行
H
53 行
// ContentMgr.h: interface for the CContentMgr class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CONTENTMGR_H__C258D849_69ED_46A7_A2F0_351C5C9FB3B3__INCLUDED_)
#define AFX_CONTENTMGR_H__C258D849_69ED_46A7_A2F0_351C5C9FB3B3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "contentctrl.h"
#include <afxtempl.h>
class IContent;
class CContentMgr
{
public:
CContentMgr();
virtual ~CContentMgr();
virtual BOOL Initialize();
BOOL SomePluginsHaveBadversions() const { return m_bSomeBadVersions; }
int GetNumContent() const;
int FindContent(LPCTSTR szID) const;
CString GetContentTypeID(int nContent) const;
CString GetContentTypeDescription(int nContent) const;
CONTENTFORMAT GetContentFormat(int nContent) const;
BOOL ContentFormatIsText(int nContent) const;
BOOL ContentFormatIsText(const CString& sTypeID) const;
BOOL CreateContentControl(int nContent, CContentCtrl& ctrl, UINT nCtrlID, DWORD nStyle,
DWORD dwExStyle, const CRect& rect, HWND hwndParent);
BOOL CreateContentControl(const CONTENTFORMAT& cf, CContentCtrl& ctrl, UINT nCtrlID, DWORD nStyle,
DWORD dwExStyle, const CRect& rect, HWND hwndParent);
BOOL ConvertContentToHtml(const CString& sContent, CString& sHtml, LPCTSTR szID);
protected:
BOOL m_bInitialized;
BOOL m_bSomeBadVersions;
CArray<IContent*, IContent*> m_aContent;
protected:
};
#endif // !defined(AFX_CONTENTMGR_H__C258D849_69ED_46A7_A2F0_351C5C9FB3B3__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?