Jason,

Thanks for the code. If this is something that you'd like to see added, then please raise a RFE at
https://sourceforge.net/tracker/?group_id=16572&atid=366572

We'll need to do something to prevent these options killing Win9x boxes, but I'll be happy to have a look for a future release.

Rob.

Jason P. wrote:
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





-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/


Reply via email to