在 PreTranslateMessage 中加入
if (::IsDialogMessage(pFindDialog->m_hWnd, pMsg))
{
bHandled = TRUE;
return 0;
}
博客内容展示了在 PreTranslateMessage 里添加代码,通过 ::IsDialogMessage 函数对特定对话框消息进行处理,若满足条件则将 bHandled 设为 TRUE 并返回 0。
在 PreTranslateMessage 中加入
if (::IsDialogMessage(pFindDialog->m_hWnd, pMsg))
{
bHandled = TRUE;
return 0;
}

被折叠的 条评论
为什么被折叠?
