Use the TMessageBar::SetText function to set the text for a message bar text gadget:
This function causes the string text to be displayed in the message bar.