------------------------------创建tooltip
g_hwndtool=CreateWindowEx(WS_EX_TOPMOST,"Tooltips_class32",NULL,\
TTS_ALWAYSTIP|TTS_BALLOON,CW_USEDEFAULT,\
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,\
g_hInst,NULL);
-------------------------------填充toolinfo
TOOLINFO ti;
ti.cbSize = sizeof(TOOLINFO);
ti.uFlags = TTF_IDISHWND;
ti.hwnd = hwndButton;
ti.uId = (UINT) hwndCtrl;
ti.hinst = 0;
ti.lpszText = "ToolTips";
-------------------------------关联tooltip
SendMessage(g_hwndtool, TTM_ADDTOOL, 0,
(LPARAM) (LPTOOLINFO) &ti);