|
-
Nov 24th, 2001, 11:58 PM
#1
Thread Starter
Addicted Member
closing the FINDREPLACE structure
I am using the windows FINDREPLACE structure to search through a text editors text, but I want it to close when it finds something, I have written the function already to tell if something can be found, but I can't figure out how to close the find window. Any ideas?
I wrote in the default case like this:
/*Process "Find-Replace" messages */
default:
if (message == messageFindReplace){
pfr = (LPFINDREPLACE) lParam;
if (pfr->Flags & FR_FINDNEXT){
findstring(hwnd,search,&xCaret,&yCaret,curlinenumber);
/*CLOSE HERE!*/
}
if (pfr->Flags & FR_DIALOGTERM)
hDlgModeless = NULL;
return (0);
}
break;
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
|