www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - [?] NOTIFYICONDATA

reply A. Fontana <A._member pathlink.com> writes:
Dm gives me some errors when i try to compile a piece of code to popup a balloon
tips... The code:

NOTIFYICONDATA notifyData;

memset(&notifyData, 0, sizeof(NOTIFYICONDATA));
notifyData.cbSize = sizeof(NOTIFYICONDATA);
notifyData.hWnd = (HWND)m_win->GetHWND();
notifyData.uCallbackMessage = 0;
notifyData.uFlags = NIF_MESSAGE;
notifyData.uFlags |= NIF_INFO;

lstrcpyn(notifyData.szInfo, WXSTRINGCAST message, sizeof(notifyData.szInfo));
lstrcpyn(notifyData.szInfoTitle, WXSTRINGCAST title,
sizeof(notifyData.szInfoTitle));

notifyData.dwInfoFlags = icon ;
notifyData.uTimeout = timeout;
notifyData.uID = 99;

res = Shell_NotifyIcon(NIM_MODIFY, &notifyData) != 0;

I have included <shellapi.h> but it gives me these errors:

notifyData.uFlags |= NIF_INFO;
^
src\taskbarIcon.cpp(23) : Error: undefined identifier 'NIF_INFO'
lstrcpyn(notifyData.szInfo, WXSTRINGCAST message, sizeof(notifyData.szInfo));
^
src\taskbarIcon.cpp(25) : Error: 'szInfo' is not a member of struct
'_NOTIFYICONDATAA'
lstrcpyn(notifyData.szInfoTitle, WXSTRINGCAST title,
sizeof(notifyData.szInfoTitle));

and many others... why?
Feb 21 2006
parent reply Bertel Brander <bertel post4.tele.dk> writes:
A. Fontana wrote:
 Dm gives me some errors when i try to compile a piece of code to popup a
balloon
 tips... The code:
[snip]
 
 and many others... why?
The info tip feature is a rather new feature in windows, and the windows headerfiles and libraries shipped with Digital Mars are not the most recent. The solution is to download a new "platform sdk" from Microsoft, it's huge but free. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 22 2006
next sibling parent A. Fontana <A._member pathlink.com> writes:
I've just tried, but digital mars doesn't like Platform SDK headers...
It gives me some compile-error. What about linking by the way?

A. Fontana

In article <dtibjb$2nea$1 digitaldaemon.com>, Bertel Brander says...
A. Fontana wrote:
 Dm gives me some errors when i try to compile a piece of code to popup a
balloon
 tips... The code:
[snip]
 
 and many others... why?
The info tip feature is a rather new feature in windows, and the windows headerfiles and libraries shipped with Digital Mars are not the most recent. The solution is to download a new "platform sdk" from Microsoft, it's huge but free. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 22 2006
prev sibling parent A. Fontana <A._member pathlink.com> writes:
It works! I've applied the patch by Christof Merrwald.
It's not needed to update lib files as long as it seems
that digital mars in last version have updated this lib
by itself...

Good... maybe now i can use video for window too :D

A. Fontana

In article <dtibjb$2nea$1 digitaldaemon.com>, Bertel Brander says...
A. Fontana wrote:
 Dm gives me some errors when i try to compile a piece of code to popup a
balloon
 tips... The code:
[snip]
 
 and many others... why?
The info tip feature is a rather new feature in windows, and the windows headerfiles and libraries shipped with Digital Mars are not the most recent. The solution is to download a new "platform sdk" from Microsoft, it's huge but free. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 22 2006