pluginselectdialog.h

来自「这是一本学习 window编程的很好的参考教材」· C头文件 代码 · 共 59 行

H
59
字号
#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 + =
减小字号Ctrl + -
显示快捷键?