Sign in to follow this  
Followers 0
Herb191

_WinAPI_SetParent Makes White Box on GUI

3 posts in this topic

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)

GUISetState(@SW_SHOW)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

post-19494-0-50532900-1390514089_thumb.j

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0