Is there any way to embed a Control in a native window?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
I have a native window that includes a text pane and (optionally) two scrollbars. I have a handle to this window, and I'd
like to embed a Control into the right part of this window. I realize that it sounds a bit fantastic, but nevertheless, may be someone has an experience on this or even managed to do such a complex trick

Thanks in advance
Dmitry
 
I know the code in VB6:
Declare Function SetParent Lib "user32.dll" (ByVal hWndChild As Long, ByVal
hWndNewParent As Long) As Long

Dim oldhwnd As Long ' receives handle of button's former parent

oldhwnd = SetParent(Command1.hWnd, Form2.hWnd) ' button is now in window
Form2

Basically I think you can do the same in .NET unmanaged.

Dmitry Shaporenkov said:
Hi all,
I have a native window that includes a text pane and (optionally) two
scrollbars. I have a handle to this window, and I'd
like to embed a Control into the right part of this window. I realize that
it sounds a bit fantastic, but nevertheless, may be someone has an
experience on this or even managed to do such a complex trick?
 
Back
Top