Bug in TTrayIcon (64bit)

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Bug in TTrayIcon (64bit)

Post by Enrico Maria Giordano »

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

Any ideas?

EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Bug in TTrayIcon (64bit)

Post by Antonio Linares »

testing it...

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

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

Re: Bug in TTrayIcon (64bit)

Post by Antonio Linares »

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

  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

       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
Post Reply