Hide title bar

Blitz3D Forums/Blitz3D Beginners Area/Hide title bar

ok, I can get rid of the title bar, but I'm having trouble refreshing the window afterwards.

AppTitle "HideCaption"
Graphics 640,480,0,2

Const GWL_STYLE = -16
Const WS_CAPTION = 12582912;$C00000

Global hwndHandle% = api_FindWindow("Blitz Runtime Class", "HideCaption")
Global Style% = api_GetWindowLong(hwndHandle, GWL_STYLE)

;If (style And WS_CAPTION) <> WS_CAPTION Then
style = (style - WS_CAPTION)

api_SetWindowLong(hwndHandle%, GWL_STYLE, Style)

api_InvalidateRect(hwndHandle%, 0, 1); 


While Not KeyDown(1)

Wend

End