0

I have to "embed" an .exe within a panel in a .net windows form. I am doing this using user32.dll SetParent to set the launched app's parent to the forms Panel handle.

Once this is done, I would like to

  1. Hide the title bar of the .exe
  2. lock the exe into the panel (maximized) so it cannot be moved or closed.

Suggestions?

cabgef
  • 1,398
  • 3
  • 19
  • 35

1 Answers1

1

You can remove the titlebar from a window using the GetWindowLong and SetWindowLong(GWL_ STYLE) function to remove the WS_CAPTION style bit.

Mattias S
  • 4,748
  • 2
  • 17
  • 18