|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| commdlg.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
FINDMSGSTRING
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;
Parameters
lpfr
Pointer to a FINDREPLACE structure. The members of this structure contain the latest user input,
including the string to search for, the replacement string (if any) and the
search-and-replacement options.
Return Values
No return value.
Remarks
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.
|
See Also
FINDREPLACE, RegisterWindowMessage
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|