在OnNMHover里面让m_ToolTip显磨汪示慧含
m_ToolTip.Create(this)
m_ToolTip.SetDelayTime(300)
m_ToolTip.AddTool(...)
重载窗口的PreTranslateMessage函数增加
m_ToolTip.RelayEvent(pMsg)
断点调试,找到出问题的行。
BOOL xxxx::PreTranslateMessage(MSG* pMsg) //拦截回车消息{
// TODO: 吵基Add your specialized code here and/or call the 如碰禅base class
if(pMsg->message 渣尘== WM_KEYDOWN)
if(int(pMsg->wParam) == VK_RETURN )
return TRUE
return CDialog::PreTranslateMessage(pMsg)
return CDialog::PreTranslateMessage(pMsg)
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)