Dynamically resizing the game window?

BlitzMax Forums/BlitzMax Beginners Area/Dynamically resizing the game window?

You could buy grey alien's framework if you want a really quick and easy solution with source code.

If not, then you need to call Graphics again. Don't worry about reloading or end graphics as blitz will take care of all this.

So you just need to check for alt + enter using keydown.

As for the minimise thing,

	?Win32
		Function EnableMinimize(hWnd:Long)
			Local tmp:Long = GetWindowLongA( hWnd, GWL_STYLE )
			tmp = tmp | WS_MINIMIZEBOX
			SetWindowLongA( hWnd, GWL_STYLE, tmp )
			DrawMenuBar( hWnd )
		End Function
	?


That should do it. You need to pass in the hwnd which can be obtained when your app starts ie GetActiveWindow()