Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » arabic in tray icon ballon
|
Re: arabic in tray icon ballon [message #18910 is a reply to message #18636] |
Fri, 31 October 2008 14:50 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Please try this patch (it worked for cs-cz :):
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));
}
}
void TrayIcon::Message(int type, const char *title, const char *text, int timeout)
{
if(!IsWin2K())
return;
nid.flags = 0x10;
*nid.info = *nid.title = 0;
if(text) {
String h = ToSystemCharset(text);
memcpy(nid.info, h, min(h.GetLength(), 255) + 1);
nid.info[255] = 0;
}
if(title) {
String h = ToSystemCharset(title);
memcpy(nid.title, h, min(h.GetLength(), 63) + 1);
nid.title[63] = 0;
}
nid.infoflags = type;
nid.timeout = minmax(timeout, 10, 30) * 1000;
Shell_NotifyIcon(NIM_MODIFY, (NOTIFYICONDATA *)&nid);
}
(it is on svn too).
Mirek
|
|
|
Goto Forum:
Current Time: Thu Apr 25 13:46:52 CEST 2024
Total time taken to generate the page: 0.02727 seconds
|