www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← 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(¬ifyData, 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, ¬ifyData) != 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
↑ ↓ 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
→ 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
→ 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