⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tooltip.cpp

📁 类似于QQ的聊天工具,分为客户端和服务器端,有共享空间,能发布公告,可传输文件
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -