Создаём Label, и присваиваем ему стиль
$GUI_WS_EX_PARENTDRAG:
Код:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
$GUI = GUICreate("Test Script", 300, 200, -1, -1, $WS_POPUPWINDOW)
GUICtrlCreateLabel("Drag me", 0, 10, 300, 20, $SS_CENTER, $GUI_WS_EX_PARENTDRAG)
GUICtrlSetFont(-1, 12, 800)
$Close_Button = GUICtrlCreateButton("Close", 20, 170, 60, 20)
GUISetState(@SW_SHOW, $GUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE, $Close_Button
Exit
EndSwitch
WEnd