void CBCGPEdit::EnableSearchMode | ( | BOOL | bEnable, |
LPCTSTR | lpszPrompt, | ||
COLORREF | clrText = (COLORREF)-1 , |
||
BOOL | bRedraw = TRUE , |
||
BOOL | bDrawPromptWhenFocused = FALSE |
||
) |
Enables or disables search mode.
In "search" mode the edit control displays a string defined by lpszPrompt (when no text is entered) and a "search" icon at the right side. When the user begins to type text, the prompt is cleared and a "clear" icon appears in place of the "search" icon. A click on the "clear" icon clears the entered text and brings back the "search" icon.
bEnable | Specifies whether the search mode is turned on or off. |
lpszPrompt | A text string to be displayed in the edit control in "search" mode. |
clrText | A COLORREF value that specifies the text color. |
bRedraw | Specifies whether a control should be redrawn. |
bDrawPromptWhenFocused | Specifies whether prompt is visible when the edit control is focused. |