Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin 9, PBWin 10
#Compile EXE
#Dim All
%Unicode=1
#Include "Win32API.inc"
#Resource "gbsnippets.pbr"
%ID_Timer = 500
Global hDlg As Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Animated Taskbar",300,300,200,200, %WS_OverlappedWindow To hDlg
Dialog Set Icon hDlg, "spell"
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Select Case Cb.Msg
Case %WM_InitDialog
SetTimer(Cb.Hndl, %ID_Timer, 500, ByVal %NULL) 'uses callback messages
Case %WM_Timer
Static tFlag As Long
tFlag = tFlag Xor 1
If IsIconic(hDlg) Then Dialog Set Icon hDlg, IIF$(tFlag, "open","spell")
Case %WM_Destroy
KillTimer Cb.Hndl, %ID_Timer
End Select
End Function
'gbs_00905
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm