cmdlistener.h
来自「一个完整的IE插件的程序的源代码(有些参考价值)」· C头文件 代码 · 共 45 行
H
45 行
// 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 + =
减小字号Ctrl + -
显示快捷键?