具体就是在你把鼠标放到上面的时候给出提示....
解决方案 »
- 在视频上绘制的矩形框如何填充?
- 用纯COM使用msxml对xml文件进行读取节点值、增加节点、删除节点
- 怎样关闭线程?
- 可否建立有连接的原始套接字??救命~~~~~~~~~~~~~~~~
- 高手帮忙~~!高分酬谢,否则只能去跳楼!
- 再一个CFormView的子类中,控件有时使用正常,有时不正常,跟踪发现其句柄变为空m_hwnd出错,为什么,搞了两天还是没找到原因,是不是一
- 学VC有什么好的新闻组吗???
- WIN32小程序求助!
- 基于视频的车辆检测方面问题
- ★-文件格式如何确定,高手请进?
- 关于 CAsyncSocket Send 的一个小问题!!!!!!!! 马上给分
- 100分请教像126、163等邮箱的通讯录克隆是如何实现的,请各位给个思路。多谢
{
int AFXAPI AfxLoadString(UINT nIDS, LPTSTR lpszBuf, UINT nMaxBuf = 256);
ASSERT(pnmhdr->code == TTN_NEEDTEXTA || pnmhdr->code == TTN_NEEDTEXTW); // allow top level routing frame to handle the message
if (GetRoutingFrame() != NULL)
return FALSE; // need to handle both ansi and unicode versions of the message
TOOLTIPTEXTA* pttta = (TOOLTIPTEXTA*)pnmhdr;
TOOLTIPTEXTW* ptttw = (TOOLTIPTEXTW*)pnmhdr;
TCHAR szfulltext[256];
CString csttiptext;
CString cststatustext; UINT nid = pnmhdr->idFrom;
if (pnmhdr->code == TTN_NEEDTEXTA && (pttta->uFlags & TTF_IDISHWND) ||
pnmhdr->code == TTN_NEEDTEXTW && (ptttw->uFlags & TTF_IDISHWND))
{
// idfrom is actually the hwnd of the tool
nid = ((UINT)(WORD)::GetDlgCtrlID((HWND)nid));
} if (nid != 0) // will be zero on a separator
{
AfxLoadString(nid, szfulltext);
// this is the command id, not the button index
AfxExtractSubString(csttiptext, szfulltext, 1, '\n');
AfxExtractSubString(cststatustext, szfulltext, 0, '\n');
} // non-unicode strings only are shown in the tooltip window...
if (pnmhdr->code == TTN_NEEDTEXTA)
lstrcpyn(pttta->szText, csttiptext,
(sizeof(pttta->szText)/sizeof(pttta->szText[0])));
else
_mbstowcsz(ptttw->szText, csttiptext,
(sizeof(ptttw->szText)/sizeof(ptttw->szText[0])));
*presult = 0; // bring the tooltip window above other popup windows
::SetWindowPos(pnmhdr->hwndFrom, HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE); return TRUE; // message was handled
}
CToolTipCtrl::AddTool 这个函数如何使用呢?