📄 pluginselectdialog.h
字号:
#pragma once
#include "afxcmn.h"
#include "PlugSDI.h"
#include "DLLManager.h"
#include "ListCtrlEx.h"
// CPlugInSelectDialog dialog
class CPlugInSelectDialog : public CDialog
{
DECLARE_DYNAMIC(CPlugInSelectDialog)
public:
CPlugInSelectDialog(CWnd* pParent = NULL); // standard constructor
virtual ~CPlugInSelectDialog();
// Dialog Data
enum { IDD = IDD_PLUG_IN };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
// Used to hold the list of images for the plug-in list items
CImageList *m_pImageList;
// Used to hold the list of images for the plug-in list header
CImageList *m_pImageHdrSmall;
// Used to hold the valid filenames (Full Path) of DLLs found
CStringList m_szListValidFilenames;
// Used to hold the plug-in Name as reported by the Plug-In manager
CStringList m_szPlugInName;
// Used to hold the only the plug-in filename (Not full path) of DLLs currently "loaded"
CStringList m_szListDLLCurrentlyLoaded;
public:
virtual BOOL OnInitDialog();
// Used to hold the Plug In list control object
CListCtrlEx m_PlugInList;
// Used to fill the list control with available Plug Ins
void FillPlugIns(void);
// Used to find all available DLLs and store them in a list
int FindDLLs(CPlugSDIApp *pApp);
// Used to load all available DLLs
bool LoadDLLs(CPlugSDIApp *pApp, CStringList *szListSelectedDLLs);
protected:
// Used to hold the number of Plug Ins (DLLs) found
// int m_nNumberOfDLLs;
// Used to hold pointers to loaded DLLs
// DLLManager *m_pLoadedDLLs;
public:
// Used to modify list control's header items
void ModifyHeaderItems(void);
afx_msg void OnBnClickedPlugInLoad();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -