先请问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的声明,请给我这个函数的参数的意思是什么,还有这个参数的取值是什么  
还有函数的返回值是什么?

解决方案 »

  1.   

    '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