Date: 02-16-2022
Return to Index
created by gbSnippets
'Credit Dominic Mitchell
'Compilable Example: (Jose Includes)
#Compiler PBWin 9, PBWin 10
#Compile EXE
#Dim All
%Unicode=1
#Include "Win32API.inc"
%ABM_Notify = %WM_App + 100
Global hDlg As Dword, tabd As AppBarData
Function PBMain () As Long
Dialog New Pixels, 0, "TaskBar Monitor",,, 350,100, %WS_OverlappedWindow To hDlg
Dialog Show Modal hDlg, Call DlgProc
End Function
CallBack Function DlgProc() As Long
Select Case Cb.Msg
Case %WM_InitDialog : tabd.cbSize = SizeOf(tabd) : tabd.hWnd = hDlg : tabd.uCallbackMessage = %ABM_NOTIFY
SHAppBarMessage %ABM_NEW, tabd
Case %ABM_NOTIFY : If Cb.WParam = %ABN_POSCHANGED Then Dialog Set Text hDlg, "ABN_POSCHANGED"
Case %WM_Destroy : SHAppBarMessage %ABM_REMOVE, tabd
End Select
End Function
'gbs_00807
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm