Exemplo n.º 1
0
		public override void SetIsFullscreen (Components.Window window, bool isFullscreen)
		{
			WINDOWPLACEMENT lpwndpl = new WINDOWPLACEMENT ();
			lpwndpl.length = Marshal.SizeOf (lpwndpl);

			Gtk.Window controlWindow = window;
			IntPtr handle = GdkWin32.HgdiobjGet (controlWindow.GdkWindow);
			Win32.GetWindowPlacement (handle, ref lpwndpl);
			lpwndpl.showCmd = isFullscreen ? Win32.SW_SHOWMAXIMIZED : Win32.SW_SHOWNORMAL;
			Win32.SetWindowPlacement (handle, ref lpwndpl);
		}
Exemplo n.º 2
0
		public static extern bool SetWindowPlacement (IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);