Jump to content

_WinAPI_SetParent Makes White Box on GUI


Go to solution Solved by Herb191,

Recommended Posts

I am sure this is something simple but I can’t get this to display without a white box at the top of the GUI.

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WinAPI.au3>

$oIE = _IECreate("about:blank", 0, 0)
$IE_window_child = _IEPropertyGet($oIE, "hwnd")

$Form1 = GUICreate("Test", @DesktopWidth, @DesktopHeight, 0, 0)
_WinAPI_SetParent($IE_window_child, $Form1)




Link to comment
Share on other sites

  • Solution

For example to embed IE, see >here.


That example didn’t display right ether when I removed the –k switch. I removed the switch because I needed to be able to run IE with Ad Block Plus. Anyway, after some more digging around it looks like the address bar is what was causing the issue. The following code fixed the problem.

If _IEPropertyGet($oIE, "addressbar") Then _IEPropertySet($oIE, "addressbar", False)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...