1、局部全局变量
//为当前的应用程序释放鼠标捕获
Function ulong ReleaseCapture() LIBRARY “user32.dll”
//将鼠标捕获设置到指定的窗口
Function ulong SetCapture(ulong hwnd) LIBRARY “user32.dll”
//指定的窗口将鼠标捕获
function ulong GetCapture() library “user32.dll”
2、窗体的mousemove
if flags=1 then
releasecapture()
// send(handle(this),161,2,0)
send(handle(this),274,61458,0)
end if
3、dw的pbm_dwnlbuttonclk事件
if dwo.name=’p_logo’ then
Send ( Handle( parent ), 274, 61458, 0 )
return 1
end if
或者
picture控件的pbm_lbuttondown事件
Send ( Handle( parent ), 274, 61458, 0 )
return 1
为窗口定义用户自定义事件
Event Name: ue_nchittest
Event ID: pbm_nchittest
在事件 ue_nchittest 中编写代码
Return 2
https://wodedipan19880501.blog.163.com/blog/static/32277608201471244724773/