用Shell_NotifyIconOne of the flags in NOTIFYICONDATA.uFlags is NIF_TIP, used to set the ordinary, mouseover tooltip. A new flag (available where _WIN32_IE >= 0x0500), NIF_INFO, lets you display a balloon tip. In other words, to display a balloon tip, you must call Shell_NotifyIcon with NIF_INFO. The text goes in szInfo, and you can put a title in szInfoTitle.
LPCTSTR szTitle, UINT uTimeout, DWORD dwInfoFlags)
{
m_nid.cbSize=sizeof(NOTIFYICONDATA);
m_nid.uFlags = NIF_INFO;
m_nid.dwInfoFlags = dwInfoFlags;
strcpy(m_nid.szInfo,szMsg ? szMsg : _T(""));
strcpy(m_nid.szInfoTitle,szTitle ? szTitle : _T(""));
return Shell_NotifyIcon(NIM_MODIFY, &m_nid);
}
然后在现实对话框的时候,确定一下位置
http://www.codeproject.com/dialog/taskbarnotifier.asp
http://www.xiaozhou.net/ReadNews.asp?NewsID=534有源码下载和界面预览。