Influx Posted December 27, 2008 Share Posted December 27, 2008 how do i lock a window in place? like i know i can constantly update it and set its position but then users can still drag it up and it doesnt go back right away. how do i stop them from moving it. Link to comment Share on other sites More sharing options...
rasim Posted December 27, 2008 Share Posted December 27, 2008 @InfluxExample:#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Const $SC_MOVE = 0xF010 $hGUI = GUICreate("Not moved GUI") GUISetState() GUIRegisterMsg($WM_SYSCOMMAND, "WM_SYSCOMMAND") While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd Func WM_SYSCOMMAND($hWnd, $Msg, $wParam, $lParam) If BitAND($wParam, 0x0000FFF0) = $SC_MOVE Then Return False Return $GUI_RUNDEFMSG EndFunc Link to comment Share on other sites More sharing options...
Influx Posted December 27, 2008 Author Share Posted December 27, 2008 Thanks a LOT. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now