Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » TrayIcon Tool tips text lenght limited
Re: TrayIcon Tool tips text lenght limited [message #30307 is a reply to message #30306] Thu, 23 December 2010 15:49 Go to previous messageGo to previous message
lucpolak is currently offline  lucpolak
Messages: 18
Registered: April 2008
Location: France
Promising Member
Hello,

I find in the TrayIconWin32.cpp the function Notify which truncate the text to 60 characters :


void TrayIcon::Notify(dword msg)
{
	if(visible) {
		nid.flags = NIF_ICON|NIF_MESSAGE|NIF_TIP;
		if(nid.icon)
			DestroyIcon(nid.icon);
		nid.icon = IconWin32(icon);
		String stip = ToSystemCharset(tip);
		int len = min(stip.GetLength(), 60);
		memcpy(nid.tip, stip, len);
		nid.tip[len] = 0;
		VERIFY(Shell_NotifyIcon(msg, (NOTIFYICONDATA *)&nid));
    }
}


I'va modified the line
int len = min(stip.GetLength(), 60);


to

int len = stip.GetLength();


And it's works fine.

Lucas
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to communicate between windows?
Next Topic: PROPOSAL: PopUp Example / Test
Goto Forum:
  


Current Time: Sat Aug 09 16:48:21 CEST 2025

Total time taken to generate the page: 0.03447 seconds