I found this in my draft box from a month or so ago, and thought those involved in the upcoming release might be interested (or not) in seeing it.

Jason P.
-Original Message-

I cant be perfectly sure of the definition of the NOTIFYICONDATA structure in place on the sources as of 1.02, but I believe the ability for the NIF_INFO flag to take effect is not there. That would mean the the szInfo / szInfoTitle / dwInfoFlags / [uTimeout/uVersion] are not implemented.

I believe [I can't be sure because I haven't done any XS coding before] that the following additions to GUI_Options.cpp [circa line 910 as of 1.02 release source] will enable this use after the NOTIFYICONDATA is updated.
=================================
} else if(strncmp(option, "-balloon", 8) == 0) { //begin addition
               next_i = i + 1;

               SwitchBit(nid->uFlags, NIF_INFO, 1);
           } else if(strncmp(option, "-btinfo", 10) == 0) {
               next_i = i + 1;

               strcpy(nid->szInfo, SvPV_nolen(ST(next_i)));
               SwitchBit(nid->uFlags, NIF_INFO, 1);
           } else if(strncmp(option, "-bttitle", 10) == 0) {
               next_i = i + 1;

               strcpy(nid->szInfoTitle, SvPV_nolen(ST(next_i)));
               SwitchBit(nid->uFlags, NIF_INFO, 1);
           } else if(strncmp(option, "-bttimeout", 10) == 0) {
               next_i = i + 1;

               nid->uTimeout = (UINT) SvIV(ST(next_i));
           } else if(strncmp(option, "-bticon", 10) == 0) {
               next_i = i + 1;

               nid->dwInfoFlags = SvIV(ST(next_i));
           } //end addition
=================================

It is possible that MinGW and/or Cygwin dont support the additions in shell32.dll version 5+. And it is also obviously an issue that these features would be useless for Win9x boxes.

The structure as per MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/structures/notifyicondata.asp




Reply via email to