BCGControlBar Pro for MFC
void CBCGPRibbonEdit::EnableSearchMode ( BOOL  bEnable,
LPCTSTR  lpszPrompt 
)

Displays or hides "Find" and "Clear" icons at the right side of edit control.

Use this method to put edit control in "search" mode. In this mode edit control displays "Find" and "Clear" icons.

When the user clicks the "Clear" icon, the content of search box is cleared and the default text, specified by lpszPrompt is displayed within the edit box.