如何在VB中使用FindText、ReplaceText、FRHookProc三个API函数?

fs_windy 2000-08-16 12:57:00
如题:如何在VB中使用FindText、ReplaceText、FRHookProc三个API函数?
请高手指教?
...全文
217 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
y1g1y1 2001-02-23
  • 打赏
  • 举报
回复

http://www.csdn.net/expert/TopicView.asp?id=74205

http://www.csdn.net/cnshare/soft/soft5806.shtm

prefix 2000-08-16
  • 打赏
  • 举报
回复
不过如果有200分的话,我会写上来。
prefix 2000-08-16
  • 打赏
  • 举报
回复
用FRHookProc会很复杂,还是不要的好。
shines77 2000-08-16
  • 打赏
  • 举报
回复
目前我只知道他们的声明,FRHookProc还没查到,我去查查:

Private Type FINDREPLACE
lStructSize As Long ' size of this struct 0x20
hwndOwner As Long ' handle to owner's window
hInstance As Long ' instance handle of.EXE that
' contains cust. dlg. template
flags As Long ' one or more of the FR_??
lpstrFindWhat As String ' ptr. to search string
lpstrReplaceWith As String ' ptr. to replace string
wFindWhatLen As Integer ' size of find buffer
wReplaceWithLen As Integer ' size of replace buffer
lCustData As Long ' data passed to hook fn.
lpfnHook As Long ' ptr. to hook fn. or NULL
lpTemplateName As String ' custom template name
End Type

Private Declare Function FindText Lib "comdlg32.dll" Alias "FindTextA " (pFindreplace As FINDREPLACE) As Long

Private Declare Function ReplaceText Lib "comdlg32.dll" Alias "ReplaceTextA" (pFindreplace As FINDREPLACE) As Long

1,486

社区成员

发帖
与我相关
我的任务
社区描述
VB API
社区管理员
  • API
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧