dllmanager.h

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

H
50
字号
#pragma once

class DLLManager
{
public:
	DLLManager();
	~DLLManager(void);

// Methods
	// Used to load DLL given the filename
	bool LoadDLL(CString szFileName);
	// Used to initialize the DLL
	bool InitDLL();
	// Used to free previously loaded DLL
	bool FreeDLL();
	// Used to set the toolbar object
	void SetToolBarPointer(CToolBar *pwndToolBar);
	// Used to access the ID of the toolbar button added by this DLL
	UINT GetToolBarButtonID();
	// Used to extract the Plug-In's name
	bool GetDLLName(CString *szName);

// Member Variables
public:
	// Used to hold the filename of the DLL
	CString m_szDLLFileName;
	// Used to hold the pointer to DLL Instance
	HINSTANCE m_pDLLhInstance;

private:
	// Used to hold toolbar button Resource IDs returned by plug-ins
//	UINT m_unButtonArray[10];
	// Used to hold number to buttons added to toolbar
//	short m_nButtonCount;
	// Used to hold pointer to toolbar object
	CToolBar *m_pwndToolBar;

public:
	// Used to set the filename for the DLL
	void SetDLLFileName(CString szFileName);

protected:
	// Used to hold the ID of the toolbar button added by the DLL
	UINT m_unToolBarID;

public:
	// Used to hold the name of the Plug-In
	CString m_szPlugInName;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?