Maybe you could cut off the border of the application you need to embed, using _WinAPI_SetWindowRgn() and _WinAPI_CreateRectRgn().
Here's an example where i cut off the border of the Irrlicht Render window and place it in an AutoIt GUI.
C
#include "./Bin/au3Irrlicht2.au3"
#include <WinAPI.au3>
$Gui = GUICreate("AutoIt Window", 800, 458, -1, -1)
GUICtrlCreateLabel("Irrlicht In AutoIt GUI", 680, 40, 100, 22)
HotKeySet("{ESC}", "_exit")
;Embed Irrlicht RenderWindow---------------------------------------------------------------------------------------
_IrrStart($IRR_EDT_opengl, 640, 480, $IRR_BITS_PER_PIXEL_32, $IRR_windowed, $IRR_SHADOWS, $IRR_capture_EVENTS, $IRR_VERTICAL_SYNC_Off)
_IrrSetWindowCaption( "IrrLicht Window")
;Comment out the following 3 lines and uncomment the other 2 lines to see how it looks without cutting the border
;--------------------------------------------------------------------------------
_WinAPI_SetWindowRgn(WinGetHandle("IrrLicht Window", ""), _WinAPI_CreateRectRgn(1, 25, 640, 480)) ; Cut off IrrLicht Window Border
WinMove("IrrLicht Window", "", -1, -25)
_WinAPI_Setparent(WinGetHandle("IrrLicht Window", ""), $Gui)
; WinMove("IrrLicht Window", "", 0, 0)
;_WinAPI_Setparent(WinGetHandle("IrrLicht Window", ""), $Gui)
;--------------------------------------------------------------------------------
WinActivate("AutoIt Window")
GUISetState()
;--------------------------------------------------------------------------------------------------------------------
;add your IrrLicht stuff here.....
local $nodeCamera = _IrrAddCamera(10,10,10, 0,0,0 )
local $nodeTest = _IrrAddCubeSceneNode(10)
_IrrSetNodeMaterialTexture( $nodeTest, _IrrGetTexture(".\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeTest, $IRR_EMF_LIGHTING, $IRR_OFF )
WHILE _IrrRunning()
_IrrBeginScene(128,128,128)
_IrrDrawScene()
_IrrEndScene()
Sleep(5)
WEND
Func _exit()
_IrrStop()
Exit
EndFunc ; _exit
Alles anzeigen
Everything needed to run it is in the attachment.