It's not compared with Trancexx's, but it works for me. The example resizes with the gui:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("Yet Another Gif Example", 250, 400, -1, -1, BitOR($WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME))
;create the object
$oObj = ObjCreate("Shell.Explorer.2")
$oObj_ctrl = GUICtrlCreateObj($oObj, 5, 5, 240, 390)
;resize control when the window resizes
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
;restrict right click
GUICtrlSetState(-