|
-
Jul 21st, 2001, 12:47 PM
#1
Thread Starter
PowerPoster
find/replace/find next
Is there a common dialog box for Find/Find Next/Replace?
If so, how do I open it up from a program?
-
Jul 21st, 2001, 04:02 PM
#2
Fanatic Member
This is the function and struct you'll need to do that.
VB Code:
'this is the find dialog
Public Declare Function FindText Lib "comdlg32.dll" Alias "FindTextA" (pFindreplace As FINDREPLACE) As Long
'this is the find/replace dialog
Public Declare Function ReplaceText Lib "comdlg32.dll" Alias "FindTextA" (pFindreplace As FINDREPLACE) As Long
Public Type FINDREPLACE
lStructSize As Long ' size of this struct 0x20
hwndOwner As Long ' handle to owner's window
hInstance As Long ' stance 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
I could swear there was an example of it somewhere here, since I've seen it before, but until someone decides to fix the search thing, if ever, I can't find out if it was here or not . I'd give an example if I had one, but I've never used this myself.
Last edited by Kaverin; Jul 21st, 2001 at 04:09 PM.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Jul 21st, 2001, 07:56 PM
#3
Thread Starter
PowerPoster
Thanks Kaverin,
I'll give it a try.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|