如何处理这个编辑框? 我文档试图结构中的试图里面 使用Create(WS_VISIBLE|WS_CHILD,....)创建了一个编辑框,在编辑框里点右键时可以复制和粘贴,但是这个编辑框不响应 ctrl+c,ctrl+v等快捷键。不知要怎么处理? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_editctls.asp 继承一下在PreTranslateMessage中把这两个消息屏蔽掉 BOOL CMyEdit::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base classif(pMsg->wParam == 'c'&& GetKeyState(VK_CONTROL) < 0){ AfxMessageBox("kkkk");} return CEdit::PreTranslateMessage(pMsg);}这样的代码怎么if始终为假? 问题解决了BOOL CMyEdit::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base classif(pMsg->wParam == 'C'&& GetKeyState(VK_CONTROL) < 0){ AfxMessageBox("kkkk");} return CEdit::PreTranslateMessage(pMsg);}pMsg->wParam == 'C'就可以了//表示 ctrl c 新手 求助 基于C++的OpenGL问题! VC++串口编程问题 远程数据库访问(区区薄礼,不成敬意 暂送150分). 请教个mysql api问题 关于打印的问题,请各位高手赐教,高分相送 1000分求USB网卡驱动程序的源码 求教STL高手关于string问题 从内存中加载并启动一个程序失败。求解决方案。 Domodal()问题 市面上有好的MFC类库手册么?我找不到. 通过CryptApi使用数字证书对一个文件进行签名怎么实现? -=100分=- 新手请教CSlideCtrl* pSlide = (CSliderCtrl*)pScrollBar;是什么意思?
在PreTranslateMessage中把这两个消息屏蔽掉
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->wParam == 'c'&& GetKeyState(VK_CONTROL) < 0)
{
AfxMessageBox("kkkk");
}
return CEdit::PreTranslateMessage(pMsg);
}
这样的代码怎么if始终为假?
BOOL CMyEdit::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->wParam == 'C'&& GetKeyState(VK_CONTROL) < 0)
{
AfxMessageBox("kkkk");
}
return CEdit::PreTranslateMessage(pMsg);
}
pMsg->wParam == 'C'就可以了//表示 ctrl c