helpinterceptionwnd.cpp

来自「一个统计文件大小和程序信息的插件程序(vc或vc.net下使用)」· C++ 代码 · 共 53 行

CPP
53
字号
/***************************************************************************/
/* NOTE:                                                                   */
/* This document is copyright (c) by Oz Solomonovich, and is bound by the  */
/* MIT open source license (www.opensource.org/licenses/mit-license.html). */
/* See License.txt for more information.                                   */
/***************************************************************************/

// HelpInterceptionWnd.cpp : implementation file
//

#include "stdafx.h"
#include "linecount.h"
#include "HHSupp.h"
#include "HelpInterceptionWnd.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CHelpInterceptionWnd

CHelpInterceptionWnd::CHelpInterceptionWnd(DWORD helpID) :
    m_iHelpID(helpID)
{
    CreateEx(0, AfxRegisterWndClass(0), "Help Interception Wnd",
        WS_POPUP, CRect(0, 0, 0, 0), NULL, 0);
}

CHelpInterceptionWnd::~CHelpInterceptionWnd()
{
}


BEGIN_MESSAGE_MAP(CHelpInterceptionWnd, CWnd)
	//{{AFX_MSG_MAP(CHelpInterceptionWnd)
	//}}AFX_MSG_MAP
    ON_MESSAGE(WM_HELP, OnHelp)
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CHelpInterceptionWnd message handlers

LRESULT CHelpInterceptionWnd::OnHelp(WPARAM, LPARAM /*lParam*/) 
{
//  HELPINFO *pHI = (HELPINFO *)lParam;
    ShowHTMLHelp(NULL, m_iHelpID);
	return TRUE;
}

⌨️ 快捷键说明

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