tooltip.cpp

来自「类似于QQ的聊天工具,分为客户端和服务器端,有共享空间,能发布公告,可传输文件」· C++ 代码 · 共 52 行

CPP
52
字号
// ToolTip.cpp: implementation of the CToolTip class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "NetQQ.h"
#include "ToolTip.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CToolTip::CToolTip()
{
	
}

void CToolTip::AddToolTip(LPCTSTR lpszText,CWnd* pWnd, UINT nIDTool)
{
	m_ttToolTip.UpdateTipText(lpszText, pWnd, nIDTool);
}

CToolTip::~CToolTip()
{

}

CToolTipCtrl& CToolTip::GetToolTip()
{
	return m_ttToolTip;
}

void CToolTip::CreateToolTip(CWnd *pParentWnd)
{
	m_ttToolTip.Create(pParentWnd);
	m_ttToolTip.Activate(TRUE);
	CWnd* pWnd = pParentWnd->GetWindow(GW_CHILD);
	while(pWnd)
	{
		int nID = pWnd->GetDlgCtrlID();
		if (nID != -1)
			m_ttToolTip.AddTool(pWnd, pWnd->GetDlgCtrlID());
		pWnd = pWnd->GetWindow(GW_HWNDNEXT);
	}
}

⌨️ 快捷键说明

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