Hello Guys
I'm having a question right here. Is it possible to set an option that your GUI for example can only be dragged to it's right hand side? Or generally only on the x axis?
I think it could be achieveable when using the Mouse Repel function I encountered during my research, but before trying to implement this function I would like to know if there is a shorter way. Maybe due to some WinAPI calls or something like that?
Thanks in advance for your help
Edit: I thin
#include <GUIConstantsEx.au3>
#include <StructureConstants.au3>
#include <WindowsConstants.au3>
Local $hGUI = GUICreate("GUI")
GUISetState(@SW_SHOW, $hGUI)
GUIRegisterMsg($WM_WINDOWPOSCHANGING, 'WM_WINDOWPOSCHANGING')
While (True)
Switch (GUIGetMsg())
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
Func WM_WINDOWPOSCHANGING($hWnd, $iMsg, $wParam, $lParam)
#forceref $iMsg, $wPara