Bug in TTrayIcon (64bit)

Bug in TTrayIcon (64bit)

Postby Enrico Maria Giordano » Sun May 24, 2020 8:43 am

The sample testtray.prg doesn't show any icons in the tray area (FWH 64bit).

Any ideas?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia



Re: Bug in TTrayIcon (64bit)

Postby Antonio Linares » Sat Jun 13, 2020 11:01 am

testing it...

Sorry for the delay my friend :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain



Re: Bug in TTrayIcon (64bit)

Postby Antonio Linares » Mon Jul 20, 2020 9:59 am

Dear Enrico,

We have implemented some changes in Class TTrayIcon and in Class TStruct for 64 bits, but still we are unable to get it
working on 64 bits...

Code: Select all  Expand view
 if ! IsExe64()        
   STRUCT oTray
      MEMBER cbSize     AS LONG
      MEMBER hWnd       AS LONG
      MEMBER uID        AS LONG
      MEMBER uFlags     AS LONG
      MEMBER uCallMsg   AS LONG
      MEMBER hIcon      AS LONG
      MEMBER cTip       AS STRING LEN 64
   ENDSTRUCT
  else
   STRUCT oTray
      MEMBER cbSize     AS LONG
      MEMBER hWnd       AS LONGLONG
      MEMBER uID        AS LONG
      MEMBER uFlags     AS LONG
      MEMBER uCallMsg   AS LONG
      MEMBER hIcon      AS LONGLONG
      MEMBER cTip       AS STRING LEN 64
   ENDSTRUCT
  endif


Code: Select all  Expand view
      case nType == LONGLONG
            do case
               case cType == "N"
                  uData = PadR( AllTrim( Str( uData ) ), nLen )
            endcase

            ::cBuffer = If( nOffset > 0, SubStr( ::cBuffer, 1, nOffset ), "" ) + ;
                        uData + SubStr( ::cBuffer, nOffset + nLen + 1 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain



Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 1 guest