如何捕获 EM_SHOWBALLOONTIP CEdit 消息?

How to catch EM_SHOWBALLOONTIP CEdit Message?

我正在尝试在 PreTranslateMessage 函数中捕获 CEdit EM_SHOWBALLOONTIP 消息。 有人可以告诉我该怎么做吗? 谢谢

BOOL CTestDlg::PreTranslateMessage(MSG* pMsg)
{
    if (pMsg->hwnd == m_edit1.GetSafeHwnd())
    {
        if (pMsg->message == EM_HIDEBALLOONTIP)
        {
        }
        
    }
    return CDialogEx::PreTranslateMessage(pMsg);
}

PreTranslateMessage is nested inside the message loop. Consequently, it is called for queued messages only. EM_SHOWBALLOONTIP 是一条已发送的消息,永远不会在消息队列中结束。

换句话说:您无法在 PreTranslateMessage 实现中观察到 EM_SHOWBALLOONTIP