LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How create a tooltips in status bar icons

the answer is in the title Smiley Very Happy

 

I want to create a tooltips on my application icon tray, in the status bar icon.

I think that the solution is in the SDK, but i dont know to implement this code:

 

source MSDN:

 

"

#define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))

NOTIFYICONDATA IconData = {0};

IconData.cbSize = sizeof(IconData);
IconData.hWnd = hwndNI;
IconData.uFlags = NIF_INFO;

HRESULT hr = StringCchCopy(IconData.szInfo, ARRAYSIZE(IconData.szInfo), TEXT("Your message text goes here."));
if(FAILED(hr))
{
// TODO: Write an error handler in case the call to StringCchCopy fails.
}
IconData.uTimeout = 15000; // in milliseconds

Shell_NotifyIcon(NIM_MODIFY, &IconData);
"

0 Kudos
Message 1 of 2
(3,080 Views)

If you're interested in the icons in the notification area, I think the easiest solution is to use the "System Tray Icons" functions in toolbox.fp.

You can create a new icon calling InstallSysTrayIcon(), and you can also set the tooltip text.

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 2 of 2
(2,938 Views)