plugin_one.h

来自「《EVC高级编程及其应用开发》源代码」· C头文件 代码 · 共 61 行

H
61
字号
// PlugIn_one.h : main header file for the PLUGIN_ONE DLL
//

#if !defined(AFX_PLUGIN_ONE_H__E96B3728_B531_42F9_8DC2_EBDBD53D8C62__INCLUDED_)
#define AFX_PLUGIN_ONE_H__E96B3728_B531_42F9_8DC2_EBDBD53D8C62__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CPlugIn_oneApp
// See PlugIn_one.cpp for the implementation of this class
//

class CPlugIn_oneApp : public CWinApp
{
public:
	CPlugIn_oneApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPlugIn_oneApp)
	//}}AFX_VIRTUAL

	//{{AFX_MSG(CPlugIn_oneApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
    //设置一个ToolBar指针
	CToolBar *m_pwndToolBar;
public:
	//用于设置主窗体工具栏指针
	void SetToolBarPointer(CToolBar *pwndToolBar);
	//用于添加按钮到主窗体工具栏上
	void AddButtonToToolBar();
	//用于从主窗体上删除掉添加的按钮
	void RemoveButtonFromToolBar();
	//用于得到插件按钮的标识
	UINT GetToolBarButtonInfo(void);
	//用于得到插件的图标
	HICON* GetPlugInIcon(void);
    //用于执行外部程序
    bool WinExec(LPCTSTR FileName);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PLUGIN_ONE_H__E96B3728_B531_42F9_8DC2_EBDBD53D8C62__INCLUDED_)

⌨️ 快捷键说明

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