怎么才能使CToolTipCtrl在所属窗口inactive情况下也能显示tip字符串?急~~~
fnzh 2003-09-30 09:13:45 我如下方式调用
mToolTip.Create(this, TTS_ALWAYSTIP);
创建tooltip,也做了
BOOL GButton::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(::IsWindow(mToolTip.m_hWnd) &&
(pMsg->message== WM_LBUTTONDOWN || pMsg->message== WM_LBUTTONUP ||
pMsg->message== WM_MOUSEMOVE))
{
mToolTip.RelayEvent(pMsg);
}
return CButton::PreTranslateMessage(pMsg);
}
但在父窗口inactive时仍然不显示tip(父窗口active时能正常显示)。
请问各位大虾,我哪儿做得不对?