cmdlistener.cpp

来自「一个完整的IE插件的程序的源代码(有些参考价值)」· C++ 代码 · 共 45 行

CPP
45
字号
// CmdListener.cpp
//
// @author christian oetterli
//

#include "stdafx.h"
#include "resource.h"
#include "CmdListener.h"

#include "Droppolino.h"
#include "DropBar.h"

CCmdListener::CCmdListener(CDropBar *newDropBar)
	: dropBar(newDropBar)
{
}

CCmdListener::~CCmdListener()
{
}

HWND CCmdListener::Create(HWND parent)
{
	return super::Create(parent, CRect(0, 0, 0, 0), 0, WS_CHILD);
}

LRESULT CCmdListener::OnCommand(UINT msg, WPARAM wParam, LPARAM lParam, BOOL& handled)
{
	WORD id = LOWORD(wParam);

	switch (id)
	{
		case ID_CUSTOMIZE:
			getDropBar()->onCustomize();
			break;
	}

	return 0;
}

CDropBar *CCmdListener::getDropBar()
{
	return dropBar;
}

⌨️ 快捷键说明

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