Edit_SetCueBannerText macro (commctrl.h)
Sets the text that is displayed as the textual cue, or tip, for an edit control. You can use this macro or send the EM_SETCUEBANNER message explicitly.
Syntax
void Edit_SetCueBannerText(
hwnd,
lpcwText
);
Parameters
hwnd
Type: HWND
A handle to the edit control.
lpcwText
Type: LPCWSTR
A pointer to a Unicode string that contains the text to set as the textual cue.
Return value
None
Remarks
An edit control that is used to begin a search may display "Enter search here" in gray text as a textual cue. When the user clicks the text, the text goes away and the user can type.
You cannot set a cue banner on a multiline edit control.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |
See also
Conceptual
Reference
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for