CString str, text, ss; str.Format(_T("%d ,%d"),point.x,point.y);
m_tool.GetText(text, this); ss = _T("");
ss = str +text +L"\0";
m_tool.UpdateTipText( ss, this);//m_tool是CToolTipCtrl 的对象。
显示时ss就像静态变量一样, 不断增加, 什么原因, 如何解决。
m_tool.GetText(text, this); ss = _T("");
ss = str +text +L"\0";
m_tool.UpdateTipText( ss, this);//m_tool是CToolTipCtrl 的对象。
显示时ss就像静态变量一样, 不断增加, 什么原因, 如何解决。
ss = _T("");
ss = str +text +L"\0"; 这样写就应该不断增加啊
后面再加一个 "\0" 干吗????
CString str, ss;
str.Format(_T("%d ,%d"),point.x,point.y); static CString text;if (第一次调用)
m_tool.GetText(text, this); ss = _T("");
ss = str +text +L"\0";
m_tool.UpdateTipText( ss, this);
static CString text; str.Format(_T("%d ,%d"),point.x,point.y);
if(!time)
{
m_tool.GetText(text, this);
time++;
} ss = str +text; m_tool.UpdateTipText( ss, this);