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