📄 cmdlistener.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 + -