ctrl+c PreTranslateMessage

XINQITIAN XINQITIAN 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
BOOL CNewTransformDLG::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (GetDlgItem(IDC_EDIT_RECORD)->m_hWnd==pMsg->hwnd)
{
if (pMsg->message==WM_KEYDOWN)
{
if (GetKeyState('c')<0||GetKeyState('C')<0)
{
if (GetKeyState(VK_CONTROL)<0)
{
// MessageBox("complement ctrl+c"); //有检测到ctrl+c的信息,但是无法复制到数据。
return CDialog::PreTranslateMessage(pMsg);
}
}
}
if (
pMsg->message ==WM_LBUTTONDOWN||
pMsg->message ==WM_LBUTTONUP||
pMsg->message ==WM_RBUTTONDOWN||
pMsg->message ==WM_RBUTTONUP||
pMsg->message ==WM_PAINT||
pMsg->message ==WM_MOUSEMOVE||
pMsg->message ==WM_COPYDATA||
pMsg->message ==WM_COPY
)
{
return CDialog::PreTranslateMessage(pMsg);
}
return TRUE;
}
return CDialog::PreTranslateMessage(pMsg);
}

有检测到ctrl+c的信息,但是无法复制到数据。请告诉帮忙分析下……
...全文
评论 4
收藏 已收藏
分享
返回顶部
XINQITIAN
界面 15,976 成员 115,866 内容