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 #30308 is a reply to message #30307] Thu, 23 December 2010 16:14 Go to previous messageGo to previous message
lucpolak is currently offline  lucpolak
Messages: 18
Registered: April 2008
Location: France
Promising Member
I'm seen in the MSDN and the text limit is effectively 64 bytes :

typedef struct _NOTIFYICONDATA {
  DWORD cbSize;
  HWND  hWnd;
  UINT  uID;
  UINT  uFlags;
  UINT  uCallbackMessage;
  HICON hIcon;
  TCHAR szTip[64];
  DWORD dwState;
  DWORD dwStateMask;
  TCHAR szInfo[256];
  union {
    UINT uTimeout;
    UINT uVersion;
  } ;
  TCHAR szInfoTitle[64];
  DWORD dwInfoFlags;
  GUID  guidItem;
  HICON hBalloonIcon;
} NOTIFYICONDATA, *PNOTIFYICONDATA;


But some paragraphs later :

szTip
TCHAR
A null-terminated string that specifies the text for a standard tooltip. It can have a maximum of 64 characters, including the terminating null character.

For Windows 2000 and later, szTip can have a maximum of 128 characters, including the terminating null character.


So I think that we can consider a max length of 128 and not 64

int len = min(stip.GetLength(), 127);




 
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: Wed May 15 11:40:47 CEST 2024

Total time taken to generate the page: 0.02603 seconds