public FREObject ResizeWindow(FREContext ctx, uint argc, FREObject[] argv) { var newX = Convert.ToInt32(new FreObjectSharp(argv[0]).Value); var newY = Convert.ToInt32(new FreObjectSharp(argv[1]).Value); var newW = Convert.ToInt32(new FreObjectSharp(argv[2]).Value); var newH = Convert.ToInt32(new FreObjectSharp(argv[3]).Value); var value = WinApi.SetWindowPos(_foundWindow, new IntPtr(0), newX, newY, newW, newH, WindowPositionFlags.SWP_NOZORDER); return(new FreObjectSharp(value).RawValue); }
public FREObject MakeNoTopMostWindow(FREContext ctx, uint argc, FREObject[] argv) { var value = WinApi.SetWindowPos(_foundWindow, new IntPtr(-2), 0, 0, 0, 0, WindowPositionFlags.SWP_NOSIZE | WindowPositionFlags.SWP_NOMOVE); return(new FreObjectSharp(value).RawValue); }
public FREObject MakeBottomWindow(FREContext ctx, uint argc, FREObject[] argv) { var value = WinApi.SetWindowPos(_foundWindow, new IntPtr(1), 0, 0, 0, 0, WindowPositionFlags.SWP_NOSIZE | WindowPositionFlags.SWP_NOMOVE | WindowPositionFlags.SWP_NOZORDER | WindowPositionFlags.SWP_FRAMECHANGED); return(new FreObjectSharp(value).RawValue); }