Change a wmaximized window's restore size

BlitzMax Forums/BlitzMax GUI Programming/Change a wmaximized window's restore size

I want to change the size that a maximized window restores to, while leaving the window maximized. The default behavior resizes the window, but also leaves it maximized, because the maximize/restore button is still shows the restore image. Perhaps this should be considered a bug?
Strict 

Local window:TGadget
Local combo:TGadget

window=CreateWindow("test",200,200,400,300,,WINDOW_TITLEBAR+WINDOW_RESIZABLE)
MaximizeWindow window
SetGadgetShape window,200,200,400,300

While True
	WaitEvent 
	Select EventID()
		Case EVENT_WINDOWCLOSE
			End
	End Select
Wend