The FINDREPLACE structure contains information that the FindText and ReplaceText functions use to initialize the Find and Replace common dialog boxes. The FINDMSGSTRING registered message uses this structure to pass the user’s search or replacement input to the owner window of a Find or Replace common dialog box.
typedef struct { // fr DWORD lStructSize; HWND hwndOwner; HINSTANCE hInstance; DWORD Flags; LPTSTR lpstrFindWhat; LPTSTR lpstrReplaceWith; WORD wFindWhatLen; WORD wReplaceWithLen; LPARAM lCustData; LPFRHOOKPROC lpfnHook; LPCTSTR lpTemplateName; } FINDREPLACE;
Flag |
Meaning |
FR_DIALOGTERM | |
If set in a FINDMSGSTRING message, indicates that the dialog box is closing. When you receive a message with this flag set, the dialog box window handle returned by the FindText or ReplaceText function is no longer valid. | |
FR_DOWN | |
If set, the Down button of the direction radio buttons in a Find dialog box is selected indicating that you should search from the current location to the end of the document. If not set, the Up button is selected so you should search to the beginning of the document. You can set this flag to initialize the dialog box. If set in a FINDMSGSTRING message, indicates the user’s selection. | |
FR_ENABLEHOOK | |
Enables the hook function specified in the lpfnHook member. This flag is used only to initialize the dialog box. | |
FR_ENABLETEMPLATE | |
Indicates that the hInstance and lpTemplateName members specify a dialog box template to use in place of the default template. This flag is used only to initialize the dialog box. | |
FR_ENABLETEMPLATEHANDLE | |
Indicates that the hInstance member identifies a data block that contains a preloaded dialog box template. The system ignores the lpTemplateName member if this flag is specified. | |
FR_FINDNEXT | |
If set in a FINDMSGSTRING message, indicates that the user clicked the Find Next button in a Find or Replace dialog box. The lpstrFindWhat member specifies the string to search for. | |
FR_HIDEUPDOWN | |
If set when initializing a Find dialog box, hides the search direction radio buttons. | |
FR_HIDEMATCHCASE | |
If set when initializing a Find or Replace dialog box, hides the Match Case check box. | |
FR_HIDEWHOLEWORD | |
If set when initializing a Find or Replace dialog box, hides the Match Whole Word Only check box. | |
FR_MATCHCASE | |
If set, the Match Case check box is checked indicating that the search should be case-sensitive. If not set, the check box is unchecked so the search should be case-insensitive. You can set this flag to initialize the dialog box. If set in a FINDMSGSTRING message, indicates the user’s selection. | |
FR_NOMATCHCASE | |
If set when initializing a Find or Replace dialog box, disables the Match Case check box. | |
FR_NOUPDOWN | |
If set when initializing a Find dialog box, disables the search direction radio buttons. | |
FR_NOWHOLEWORD | |
If set when initializing a Find or Replace dialog box, disables the Whole Word check box. | |
FR_REPLACE | |
If set in a FINDMSGSTRING message, indicates that the user clicked the Replace button in a Replace dialog box. The lpstrFindWhat member specifies the string to be replaced and the lpstrReplaceWith member specifies the replacement string. | |
FR_REPLACEALL | |
If set in a FINDMSGSTRING message, indicates that the user clicked the Replace All button in a Replace dialog box. The lpstrFindWhat member specifies the string to be replaced and the lpstrReplaceWith member specifies the replacement string. | |
FR_SHOWHELP | |
Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING registered messages that the dialog box sends when the user clicks the Help button. | |
FR_WHOLEWORD | |
If set, the Match Whole Word Only check box is checked indicating that you should search only for whole words that match the search string. If not set, the check box is unchecked so you should also search for word fragments that match the search string. You can set this flag to initialize the dialog box. If set in a FINDMSGSTRING message, indicates the user’s selection. |
If a FINDMSGSTRING message specifies the FR_FINDNEXT flag, lpstrFindWhat
contains the string to search for. The FR_DOWN, FR_WHOLEWORD, and FR_MATCHCASE
flags indicate the direction and type of search. If a FINDMSGSTRING message
specifies the FR_REPLACE or FR_REPLACE flags, lpstrFindWhat contains
the string to be replaced.
If a FINDMSGSTRING message specifies the FR_REPLACE or FR_REPLACEALL flags, lpstrReplaceWith contains the replacement string .
The FindText function ignores this member.
If the hook procedure returns FALSE in response to the WM_INITDIALOG message,
the hook procedure must display the dialog box or else the dialog box will not
be shown. To do this, first perform any other paint operations, and then call
the ShowWindow and UpdateWindow functions.
FindText, FRHookProc, MAKEINTRESOURCE, ReplaceText, ShowWindow, UpdateWindow, WM_INITDIALOG
file: /Techref/os/win/api/win32/struc/src/str07_28.htm, 14KB, , updated: 2000/4/7 11:20, local time: 2024/12/23 12:01,
18.189.170.65:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/struc/src/str07_28.htm"> FINDREPLACE</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.