I am embedding a 3rd party app into a panel on a C# Windows form (using SetParent from user32.dll). I need to then turn off the title bar window style WS_CAPTION so that it looks like a part of the hosting application.
How do I change a window’s style to accomplish this?
For sake of example, say _hWnd is the handle of the application to embed.
SetWindowLong(_hWnd, GWL_STYLE, GetWindowLong(_hWnd, GWL_STYLE) & ~WS_CAPTION);