我正在尝试在 Visual Studio 2005 中使用 VC++ 创建一个 BalloonToolTipIcon。我能够创建一个工具提示,如图所示“ http://www.c-sharpcorner.com/UploadFile/mahesh/tooltip-in-C-Sharp /Images/ToolTipImg2.jpg ”但我希望它是这种类型的“ http://www.quantumsoftware.com.au/Images/Products/WindowsFormsComponents/BalloonToolTip.gif ”...
我正在使用以下代码来创建此工具提示。谁能告诉我我没有正确设置哪个属性?
NOTIFYICONDATA nidApp;
nidApp.cbSize = sizeof(NOTIFYICONDATA); // sizeof the struct in bytes
nidApp.hWnd = (HWND) hWnd; //handle of the window which will process this app. messages
nidApp.uID = IDI_SYSTRAYDEMO; //ID of the icon that willl appear in the system tray
nidApp.uFlags = NIF_INFO;
nidApp.hIcon = hMainIcon; // handle of the Icon to be displayed, obtained from LoadIcon
nidApp.uCallbackMessage = WM_USER_SHELLICON;
wcscpy_s(nidApp.szInfo, szinfo);
LoadString(hInstance, IDS_APPTOOLTIP,nidApp.szTip,MAX_LOADSTRING);
// Add the balloon tip
Shell_NotifyIcon(NIM_ADD, &nidApp); //Show the systary icon
提前致谢