The bubble prompt is different from the balloon prompt. If you want to implement the balloon prompt (the prompt is often displayed in the system bar), you need to download a new SDK on the Microsoft website to support it.
Let's take a look at the bubble prompts.
1,Write a class inheritanceCtooltipctrl.
2,Add the following methods to the class:
Bool addtool (uint NID, lpctstr text)
{
Toolinfo Ti;
Memset (& Ti, 0, sizeof (toolinfo ));
Ti. cbsize = sizeof (toolinfo );
Ti. hwnd = This-> getowner ()-> getsafehwnd ();
Ti. uflags = ttf_idishwnd | ttf_subclass;
Ti. uid = (uint) getparent ()-> getdlgitem (NID)-> m_hwnd;
Ti. lpsztext = (lpstr) text;
Return (bool) sendmessage (ttm_addtool, 0, (lparam) & Ti );
}
ParametersNidControls to add bubblesID,TextThat is, text content.
3,Declare a new class variable in the header file.Textarea
4,Then in the dialog boxOninitdialog() To add the followingCode
Textarea. creat (this );
//The following is the prompt for adding bubbles to the control.
Textarea. addtool (controlid, "this is an textarea example ");
The result is as follows:
From: http://blog.csdn.net/sllins/article/details/5557434