📄 pluginlist.h
字号:
////////////////////////////////////////////////////////////////////////////////
// pluginlist.h : interface of the CPlugInTool class
// Author: Saji Varkey (SCV)
// $Header: /USB/Util/EzMr/pluginlist.h 3 8/08/00 2:26p Tpm $
// Copyright (c) 2000 Cypress Semiconductor. May not be reproduced without permission.
// See the EzUsb Developer's Kit license agreement for more details.
////////////////////////////////////////////////////////////////////////////////
#ifndef H_PLUGINLIST
#define H_PLUGINLIST
class CPlugInTool;
class CPlugInList : public CObject
{
public:
CPlugInList( int maxTools = 25 ); // Constructor
virtual ~CPlugInList(); // Destructor
void UpdateMenu( CCmdUI* pCmdUI ); // Updates the plug-in tools menu
const CPlugInTool* operator[](int nIndex); // Access by index
protected:
virtual void DeleteAll(); // delete all the stored plug-in tools
void GetPluginToolsFromReg(); // Get plug-in tools from the registry
private:
CPtrArray m_plugInToolsArray; // plug-in tools array
CString m_strOriginal; // original string in plug-in tools menu
int m_maxTools; // maximum number of tools
};
//........................................................................................
//
//
// DESCRIPTION:
// Access the List by index.
//
// RETURN:
// CPlugIntool* - return the plug-in tool at the index
//........................................................................................
inline const CPlugInTool* CPlugInList::operator[](int nIndex)
{
ASSERT( nIndex < m_plugInToolsArray.GetSize() );
ASSERT( nIndex > -1 );
return (CPlugInTool*) m_plugInToolsArray[nIndex];
}
#endif // H_PLUGINLIST
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -