| |
|
|
| KompilierenMarqueSéparationcls
userMessages 16,513//wm_close,wm_lButtonDown
while 1
WaitInput
select %uMessage
caseof 16 : break//wm_close
caseof 513 : hWnd.movebyMouse()//wm_lButtonDown
endSelect
wend
end
proc hWnd.moveByMouse
declare mpos#
dim mpos#,8
external("user32","GetCursorPos]",mpos#)
var wix&=%winLeft-long(mpos#,0)
var wiy&=%winTop-long(mpos#,4)
while iskey(1)
external("user32","GetCursorPos",mpos#)
setWindowPos %hWnd=(long(mpos#,0)+wix&),(long(mpos#,4)+wiy&) - (%winRight-%winLeft),(%winBottom-%winTop);0
wend
dispose mpos#
endProc
quelque chose einfacher/ kürzer avec xpse: KompilierenMarqueSéparation |
|
|
| |
|
|