-- Load the DLL, it has to remain opened until the application is closed! -- This is because the DLL is subclassing the Window and catching certain -- events to prevent sizing. local dwr = Library.Load(_SourceFolder.."\\".."AutoPlay\\Docs\\dwr.dll"); if (not dwr) then error("DRW could not be loaded!"); end function DisableWindowResizing(hWnd, state) if (type(hWnd) ~= "number") then error("DisableWindowResizing: Argument #1 must be of type number! (window handle)", 2); end if (type(state) ~= "boolean") then error("DisableWindowResizing: Argument #2 must be of type boolean! (true/false)", 2); end -- Check if hWnd actually is a Window. (User32.dll::IsWindow) if(dwr.IsValidWindow(hWnd) ~= 1)then error("DisableWindowResizing: Argument #1 must be a valid window handle! (Application.GetWndHandle)", 2); end return (dwr.DisableWindowResizing(hWnd, (state and 1 or 0)) == 1); end ------------------------------- CALL DisableWindowResizing(Application.GetWndHandle(), true); -- Prevent the window from resizing when on this page. DisableWindowResizing(Application.GetWndHandle(), false); -- Allow the resizing of the window when on this page.