关于Findtext和Replacetext的问题!

soho06619 2003-07-09 05:54:50
先请问Findtext和Replacetext在找到所要的文本后是不是返回此文本所在的位置呀,如果那就请回答我下面的问题吧,如果不是,那就麻烦朋友给我找能返回所要查找文本位置的API文本查找函数,然后再回答关于这个函数的问题(问题和下面的相同)
谢谢了,我是菜鸟不懂,麻烦朋友说的细点


Public Declare Function FindText Lib "comdlg32.dll" Alias "FindTextA " (pFindreplace As FINDREPLACE) As Long
这是Findtext的声明,请给我这个函数的参数的意思是什么,还有这个参数的取值是什么
还有函数的返回值是什么?

Public Declare Function ReplaceText Lib "comdlg32.dll" Alias "ReplaceTextA" (pFindreplace As FINDREPLACE) As Long
这是Replacetext的声明,请给我这个函数的参数的意思是什么,还有这个参数的取值是什么
还有函数的返回值是什么?
...全文
107 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
soho06619 2003-07-10
  • 打赏
  • 举报
回复
请问上面这些具体的每一个参数都是什么意思呀?
gpo2002 2003-07-09
  • 打赏
  • 举报
回复
'Find/Replace Type Structure
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


soho06619 2003-07-09
  • 打赏
  • 举报
回复
aa

1,486

社区成员

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

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