Close & Minimize Buttons

Blitz3D Forums/Blitz3D Programming/Close & Minimize Buttons

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.

You will get a short flicker, but this does it:
DesktopW = User32_GetSystemMetrics(0)
DesktopH = User32_GetSystemMetrics(1)
WinW	 = GraphicsWidth()
WinH	 = GraphicsHeight()
; Get hWnd pointer For the Blitz Window
hWindow = User32_GetActiveWindow()
; Set the Blitz Window Style
User32_SetWindowLong(hWindow,-16,$10000000 + $80000)
; Resize and center Blitz Window	
User32_MoveWindow(hWindow,(DesktopW-WinW)/2,(DesktopH-WinH)/2,WinW,WinH,True)
WaitKey()
End
Get the decls in the code archives two posts up.