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"
Global hDlg As Dword
Function PBMain
Local Result As Long
Dialog New 0, "", , , 200, 60, %WS_OverlappedWindow To hDlg
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc()
Local trackMouseC As TrackMouseEventAPI
Static MouseInC As Dword
Select Case As Long CB.Msg
Case %WM_MOUSEMOVE
If MouseInC = %False Then
MouseInC = %TRUE
trackMouseC.cbSize = SizeOf(trackMouseC)
trackMouseC.dwFlags = %TME_LEAVE
trackMouseC.hwndTrack = hDlg
TrackMouseEvent(trackMouseC)
Dialog Set Text hDlg, "Inside"
End If
Case %WM_MOUSELEAVE
MouseInC = %FALSE
Dialog Set Text CB.Hndl, "Outside"
End Select
End Function
'gbs_01034
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm