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

📄 cmdlistener.h

📁 一个完整的IE插件的程序的源代码(有些参考价值)
💻 H
字号:
// CmdListener.h
//
// @author christian oetterli
//

#ifndef __CMDLISTENER_H__
#define __CMDLISTENER_H__

// the CDropBar window does not receive any WM_COMMAND messages. i guess this is because 
// explorer intercepts them in some way.
//
// DropBar uses this hidden window for receiving commands.

class CCmdListener : public CWindowImpl<CCmdListener>
{
	typedef CWindowImpl<CCmdListener> super;

public:
	// initializes with DropBar.
	// @param newDropBar pointer to DropBar.
	CCmdListener(class CDropBar *newDropBar);
	virtual ~CCmdListener();

	// creates this window.
	// @param parent parent window.
	// @return TRUE if successfull.
	HWND Create(HWND parent);

	BEGIN_MSG_MAP(CCmdListener)
		MESSAGE_HANDLER(WM_COMMAND, OnCommand)
	END_MSG_MAP()

protected:
	// the Drop Bar.
	class CDropBar *dropBar;

	// @return Drop Bar.
	class CDropBar *getDropBar();

protected:
	LRESULT OnCommand(UINT msg, WPARAM wParam, LPARAM lParam, BOOL& handled);
};

#endif //__CMDLISTENER_H__

⌨️ 快捷键说明

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