Minimize without Resize

BlitzPlus Forums/BlitzPlus Programming/Minimize without Resize

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.

Userlib:
.lib "user32.dll"
SetWindowLong%(hWnd%,Val%,Long%):"SetWindowLongA"
GetWindowLong%(hWnd%,Val%):"GetWindowLongA"
B+ Code:
Parent = CreateWindow("Window", ClientWidth(Desktop())/2 - 157, ClientHeight(Desktop())/2 - 118, 314, 236, 0, 1 + 4) 

; Window Style
hWnd = QueryObject(Parent, 1)
ret = GetWindowLong(hWnd, -16)
ret = ret Or $20000
SetWindowLong hWnd, -16, ret
An UpdateWindowMenu Parent may be required to see the changes.