您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> VC/MFC >> 热泪求助:工作重压下,请大家帮一把。急!急!急!

热泪求助:工作重压下,请大家帮一把。急!急!急!

来源:网络整理     时间:2016/8/27 6:45:19     关键词:

关于网友提出的“ 热泪求助:工作重压下,请大家帮一把。急!急!急!”问题疑问,本网通过在网上对“ 热泪求助:工作重压下,请大家帮一把。急!急!急!”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: 热泪求助:工作重压下,请大家帮一把。急!急!急!
描述:

我用MFC ActiveX Wizard生成一个最简单的OCX框架,在其中插入一个Dialog,包含两个Edit,Button。
在ActiveX控件的Create函数中创建这个Dialog,当我在网页中引入这个OCX后,
我dialog上的Edit对键盘的Backspace,left,right按键失效了,但是对其他输入和del有效。
我参考了http://www.microsoft.com/mind/0499/faq/faq0499.asp
但还是没有解决问题,上司不停在催我,混不下去了!
请大家帮一把!

  
  dialogcontrol
  
  
  
  


  <>
   height=300 width=500>
  
  

  
  


解决方案1:

Accelerator  keys,  such  as  ARROW  keys,  are  first  received  by  the  message  pump  of  the  ActiveX  control's  container.  Even  if  the  control  has  the  focus,  it  does  not  receive  messages  for  keystrokes  that  have  special  meaning  to  control  containers,  such  as  ARROW  and  TAB  keys.  MFC  ActiveX  controls  have  a  chance  to  intercept  these  messages  by  overriding  their  PreTranslateMessage  function.    
 
However,  PreTranslateMessage  is  not  always  called  for  an  MFC  ActiveX  control.  
 
RESOLUTION  
Install  a  Windows  WH_GETMESSAGE  hook  for  the  modeless  dialog  box/propertysheet  derived  class  to  allow  it  to  intercept  keystrokes  and  handle  accelerators.    
...  
Q168777  PRB:  MFC  ActiveX  Control  in  IE  Doesn't  Detect  Keystrokes  
Q180402  PRB:  MFC  ActiveX  Control  Ignores  ARROW  Keys  on  VB  Container  
Q187988  PRB:  ActiveX  Control  Is  the  Parent  Window  of  Modeless  Dialog  
Q199431  PRB:  Enabling  Menu  Mnemonics  in  an  MFC  ActiveX  Control  
Q194294  HOWTO:  Add  Toolbars  and  Tooltips  to  ActiveX  Controls


以上介绍了“ 热泪求助:工作重压下,请大家帮一把。急!急!急!”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3626936.html

相关图片

相关文章