Dynamically resizing the game window?

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

And here is another thing:

Global depth = 0

Graphics 800,600, depth
Global hWnd% = GetActiveWindow() 
enableMinimize( hwnd% )
enableMaximize( hwnd% )

While exit_flag = "false" And Not AppTerminate()


If iszoomed(hWnd) Then
	EndGraphics()
	Global depth = 32
	Graphics(800, 600, 32)
EndIf

If KeyDown(KEY_LALT) And KeyDown(KEY_ENTER)
	If depth = 0 Then depth = 32 Else depth = 0
		EndGraphics()
		Graphics(800,600,depth)
		If depth = 0 Then 
			enableMinimize( hwnd% )
			enableMaximize( hwnd% )
		End If 
EndIf

        GCCollect()
	Flip
	Cls
Wend




When I minimize my window again, the buttons for for maximize and minimize are gone. Anyone know what the issue may be?