; *** ACNWrapper开始添加 ***
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
; *** ACNWrapper结束添加 ***
$Form1 = GUICreate("无标题栏窗口移动", 348, 195, 451, 409, $WS_POPUP)
GUISetState(@SW_SHOW)
GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam)
if ($hWnd = $Form1) and ($iMsg = $WM_NCHITTEST) then Return $HTCAPTION
EndFunc
好像没啥反应,不明白楼主所说意思 |