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 () As Long
Dialog New Pixels, 0, "No Mouse Move",300,300,400,400, %WS_Popup To hDlg
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Local pt As Point
Select Case Cb.Msg
Case %WM_NCLButtonDown
GetCursorPos pt
Select Case SendMessage(hDlg, %WM_NCHitTest,0,Mak(Dword,pt.x,pt.y))
Case %HTCaption, %HTSysMenu, %HTMaxButton, %HTMinButton, %HTClose : Function = %True
End Select
Case %WM_ContextMenu
Dialog End Cb.Hndl
End Select
End Function
'gbs_00730
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm