To remove the menubar:
And the statusbar
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...
Hope that helps =)
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 =)