Runtime removing menu and status bar(Hiding)

BlitzMax Forums/BlitzMax GUI Programming/Runtime removing menu and status bar(Hiding)

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.

To remove the menubar:
Extern "Win32"
  Function SetMenu:Int( hwnd:Int, menu:Int)
EndExtern
SetMenu( hwnd, Null)

And the statusbar
Extern "Win32"
	Function FindWindowExA:Int( parent:Int, childafter:Int, classname$z, windowtitle$z)
EndExtern
Local statushwnd:Int = FindWindowExA( hwnd, 0, "msctls_statusbar32", "")
If statushwnd <> 0 Then ShowWindow( statushwnd, SW_HIDE)

Btw you should realy use GetWindowLong to get the style and remove what you dont want, as you never know what flags are set.
Something like...
Style = GetWindowLong( hwnd, GWL_STYLE)  ~ WS_CAPTION ~ WS_BORDER

Hope that helps =)