Hi,

I have an existing app that uses another gui toolkit that I am trying
to merge with a .NET app. What I want to do is to embed a window from
this app inside a Windows form.

I'm currently working on a proof of concept and I have almost done this
successfully in MC++ by deriving from Windows::Form and setting up the
embedded window without any window decorations in the OnHandleCreated()
event and then using the Win32 API SetParent() call to make the
embedded window a child of the windows form.

This provides a working solution in all ways except that when the
embedded window has the focus then the window decorations for the
containing form are dimmed to indicate that it doesn't have the focus.
Setting the style of the embedded window to WS_CHILD seems to have no
effect.

I suspect that this problem is related to the window class but I'm not
exactly sure how. The embedded window has its own WndClass and its own
WndProc which is independent of the Windows forms WndProc.

I'd appreciate some guidance on this.

Glenn