VB引用金山词霸取词出现的问题〖高分求助〗
时间:2011-10-22
来源:互联网
//引用XdictGrb2.dll
VB code
Option Explicit Implements IXDictGrabSink Private gp As GrabProxy Private Sub Form_Load() Set gp = New GrabProxy With gp.GrabEnabled = True .GrabInterval = 30 .GrabMode = XDictGrabMouse.AdviseGrab Me End With End Sub Private Function IXDictGrabSink_QueryWord(ByVal WordString As String , ByVal lCursorX As Long , ByVal lCursorY As Long , ByVal SentenceString As String , lLoc As Long , lStart As Long ) As Long Label1.Caption = " 当前坐标: " & " ( " & lCursorX & " , " & lCursorY & " ) " Label2.Caption = " 当前语句: " & SentenceStringLabel3.Caption = " 当前字符: " & Mid (SentenceString, lLoc + 1 , 1 ) End Function
取AfxFramOrView42这个控件的字,字少的时候还可以,字多了后面的就取不出来的,请问这是怎么回事?
VB code
Option Explicit Implements IXDictGrabSink Private gp As GrabProxy Private Sub Form_Load() Set gp = New GrabProxy With gp.GrabEnabled = True .GrabInterval = 30 .GrabMode = XDictGrabMouse.AdviseGrab Me End With End Sub Private Function IXDictGrabSink_QueryWord(ByVal WordString As String , ByVal lCursorX As Long , ByVal lCursorY As Long , ByVal SentenceString As String , lLoc As Long , lStart As Long ) As Long Label1.Caption = " 当前坐标: " & " ( " & lCursorX & " , " & lCursorY & " ) " Label2.Caption = " 当前语句: " & SentenceStringLabel3.Caption = " 当前字符: " & Mid (SentenceString, lLoc + 1 , 1 ) End Function
取AfxFramOrView42这个控件的字,字少的时候还可以,字多了后面的就取不出来的,请问这是怎么回事?
作者: yqwdn 发布时间: 2011-10-22
机上装了词霸2006,表示木有找到这个文件.
作者: qianjin036a 发布时间: 2011-10-22
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28