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 Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Local hDC As Dword, temp$
Static iCount As Long
Select Case Cb.Msg
Case %WM_InitDialog
SetTimer(Cb.Hndl, %ID_Timer, 2000, ByVal %NULL) 'uses callback messages
Case %WM_Timer
If IsIconic(hDlg) Then
' hDC = GetDC(?) 'get DC of taskbar window for the app
TextOut(hDC,1,1,str$(iCount),Len(str$(iCount))) 'draw on DC
ReleaseDC hDlg, hDC 'release DC
End If
Case %WM_Destroy
KillTimer Cb.Hndl, %ID_Timer
End Select
End Function
'gbs_00882
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm