The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
October 01, 2020, 03:57:42 PM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Campus
| | |-+  Animated Taskbar and tray icons
« previous next »
Pages: 1 [2] Print
Author Topic: Animated Taskbar and tray icons  (Read 9975 times)
dedndave
Member
*****
Posts: 12523


Re: Animated Taskbar and tray icons
« Reply #15 on: January 25, 2012, 05:19:01 PM »

almost done...
i have to go over and do a little favour for mom   Tongue
i'll be back in an hour or so and finish it up

i wonder if we could get a moderator to move this thread to the Campus ?
Logged
dedndave
Member
*****
Posts: 12523


Re: Animated Taskbar and tray icons
« Reply #16 on: January 25, 2012, 08:52:48 PM »

thanks Michael   ThumbsUp

i have it going - i just need to finish the dialog box stuff and do clean-up
you can play with it....

* MihailTunes.zip (21.28 KB - downloaded 208 times.)
Logged
Mihail
New Member
*
Posts: 12


Re: Animated Taskbar and tray icons
« Reply #17 on: January 25, 2012, 09:10:37 PM »

ouuuch , thanks you very muck for this job. its wonderfuul :F
Logged
dedndave
Member
*****
Posts: 12523


Re: Animated Taskbar and tray icons
« Reply #18 on: January 26, 2012, 01:15:22 AM »

my pleasure   ThumbsUp

here is the finished version

added the dialog group box w/text
cleaned up some code
also cleaned up some of the anomalous pixels in the icons

* MihailTunes2.zip (19.76 KB - downloaded 207 times.)
Logged
dedndave
Member
*****
Posts: 12523


Re: Animated Taskbar and tray icons
« Reply #19 on: January 26, 2012, 01:27:29 AM »

i meant to mention....

the guy that wrote that fasm code had a habit of doing things twice   redface

Code:
  .wminitdialog:
invoke LoadIcon,[hInstance],1                         ;1
invoke SendMessage,[hwnddlg],WM_SETICON,ICON_BIG,eax
invoke SetTimer,[hwnddlg],1,100,NULL                  ;1
mov [nIcon],1                                      ;1
mov [node.cbSize],sizeof.NOTIFYICONDATA
mov eax,[hwnddlg]
mov [node.hWnd],eax
mov [node.uID],NULL
mov [node.uFlags],NIF_ICON
mov [node.uCallbackMessage],NULL
invoke LoadIcon, [hInstance], 1                       ;2
mov [node.hIcon],eax
invoke Shell_NotifyIcon, NIM_ADD,node
invoke SetTimer,[hwnddlg],1,100,NULL                  ;2
mov [nIcon],1                                      ;2
jmp .processed

Logged
Don57
Member
****
Gender: Male
Posts: 67



Re: Animated Taskbar and tray icons
« Reply #20 on: January 26, 2012, 01:52:29 AM »

Very Nice
Logged
Mihail
New Member
*
Posts: 12


Re: Animated Taskbar and tray icons
« Reply #21 on: January 26, 2012, 11:14:28 AM »

good job :D very nice )
Logged
Mihail
New Member
*
Posts: 12


Re: Animated Taskbar and tray icons
« Reply #22 on: January 26, 2012, 11:20:21 AM »

i meant to mention....

the guy that wrote that fasm code had a habit of doing things twice   redface

Code:
  .wminitdialog:
invoke LoadIcon,[hInstance],1                         ;1
invoke SendMessage,[hwnddlg],WM_SETICON,ICON_BIG,eax
invoke SetTimer,[hwnddlg],1,100,NULL                  ;1
mov [nIcon],1                                      ;1
mov [node.cbSize],sizeof.NOTIFYICONDATA
mov eax,[hwnddlg]
mov [node.hWnd],eax
mov [node.uID],NULL
mov [node.uFlags],NIF_ICON
mov [node.uCallbackMessage],NULL
invoke LoadIcon, [hInstance], 1                       ;2
mov [node.hIcon],eax
invoke Shell_NotifyIcon, NIM_ADD,node
invoke SetTimer,[hwnddlg],1,100,NULL                  ;2
mov [nIcon],1                                      ;2
jmp .processed


this is done for the tray and taskbar separately)
Logged
dedndave
Member
*****
Posts: 12523


Re: Animated Taskbar and tray icons
« Reply #23 on: January 26, 2012, 01:09:59 PM »

thanks guys   ThumbsUp

here is the code i replaced it with...
Code:
        mov     esi,offset nid
        mov     eax,hIcons
        mov     ebx,hWnd
        xor     edi,edi
        mov     [esi].NOTIFYICONDATA.hIcon,eax
        INVOKE  SendMessage,ebx,WM_SETICON,ICON_BIG,eax
        mov     [esi].NOTIFYICONDATA.cbSize,sizeof NOTIFYICONDATA
        mov     [esi].NOTIFYICONDATA.hwnd,ebx
        mov     [esi].NOTIFYICONDATA.uID,IDT_TIMER0     ;should probably be EDI (0)
        mov     [esi].NOTIFYICONDATA.uFlags,NIF_ICON
        mov     [esi].NOTIFYICONDATA.uCallbackMessage,edi
        INVOKE  Shell_NotifyIcon,NIM_ADD,esi
        INVOKE  SetTimer,ebx,IDT_TIMER0,TIMER_ELAPSE,edi

i load all the icon handles into an array during program initialization
Logged
dedndave
Member
*****
Posts: 12523


Re: Animated Taskbar and tray icons
« Reply #24 on: January 26, 2012, 02:16:26 PM »

in the code above, i had tried putting IDT_TIMER0 into the NOTIFYICONDATA.uID member during debug
it should be 0....

* MihailTunes3.zip (19.75 KB - downloaded 216 times.)
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!