⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plug_in_1.h

📁 这是一本学习 window编程的很好的参考教材
💻 H
字号:
// Plug_In_1.h : main header file for the Plug_In_1 DLL
//

#pragma once

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

#include "resource.h"		// main symbols

// CPlug_In_1App
// See Plug_In_1.cpp for the implementation of this class
//

class CPlug_In_1App : public CWinApp
{
public:
	CPlug_In_1App();
	~CPlug_In_1App();

// Overrides
public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();

// Member variables
private:
	CToolBar *m_pwndToolBar;

public:
	// Used to set the pointer to main app's ToolBar object
	void SetToolBarPointer(CToolBar *pwndToolBar);
	// Used to add button to main app's toolbar
	void AddButtonToToolBar();
	// Used to remove button from main app's toolbar
	void RemoveButtonFromToolBar();
	// Used to call OnCmdMsg method of the App object
	void SendCmdMsgToPlugIn(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);

public:
	// Used by main app to get info about the button added by this DLL
	UINT GetToolBarButtonInfo(void);
	// Used to get the handle to the icon or the Plug-In
	HICON* GetPlugInIcon(void);
    DECLARE_MESSAGE_MAP()
	// Used to handle command messages sent by main app
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
};

⌨️ 快捷键说明

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