A Find or Replace dialog box sends the FINDMSGSTRING registered message to the window procedure of its owner window when the user clicks the Find Next, Replace, or Replace All button, or closes the dialog box.
MessageID = RegisterWindowMessage(FINDMSGSTRING);
wParam = 0;
lpfr = (LPFINDREPLACE) lParam;
No return value.
You must specify the FINDMSGSTRING constant in a call to the RegisterWindowMessage function to get the identifier for the message sent by the dialog box.
When you create the dialog box, use the hwndOwner member of the FINDREPLACE structure to identify the window to receive FINDMSGSTRING messages.
The Flags member of the FINDREPLACE structure includes one of the following flags to indicate the event that caused the message:
Flag |
Meaning |
FR_DIALOGTERM |
The dialog box is closing. After the owner window processes this message, the handle of the dialog box is no longer valid. |
FR_FINDNEXT |
The user clicked the Find Next button in a Find or Replace dialog box. The lpstrFindWhat member specifies the string to search for. |
FR_REPLACE |
The user clicked the Replace button in a Replace dialog box. The lpstrFindWhat member specifies the string to replace and the lpstrReplaceWith member specifies the replacement string. |
FR_REPLACEALL |
The user clicked the Replace All button in a Replace dialog box. The lpstrFindWhat member specifies the string to replace and the lpstrReplaceWith member specifies the replacement string. |
For a Find Next or Replace All message, the Flags member can include any combination of the following flags to indicate the search options:
Flag |
Meaning |
FR_DOWN |
If set, the Down button of the direction radio buttons is selected indicating that user wants to search from the current location to the end of the document. If FR_DOWN is not set, the Up button is selected so the user wants to search to the beginning of the document. |
FR_MATCHCASE |
If set, the Match Case check box is checked indicating that the user wants the search to be case-sensitive. If FR_MATCHCASE is not set, the check box is unchecked so the search should be case-insensitive. |
FR_WHOLEWORD |
If set, the Match Whole Word Only check box is checked indicating that the user wants to search only for whole words that match the search string. If FR_WHOLEWORD is not set, the check box is unchecked so you should also search for word fragments that match the search string. |
FINDREPLACE, RegisterWindowMessage
file: /Techref/os/win/api/win32/mess/src/msg07_17.htm, 4KB, , updated: 2000/4/7 11:20, local time: 2024/11/10 06:38,
3.145.171.99:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©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://linistepper.com/techref/os/win/api/win32/mess/src/msg07_17.htm"> FINDMSGSTRING</A> |
Did you find what you needed? |