Jump to content
AdmiralAlkex

Embedded IE flickers when resized

Recommended Posts

AdmiralAlkex

Anyway to get rid of the flicker? It's completely unusable this way.

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

Local $sHTML =  '<body bgcolor="#1E1E1E"></body>'

$hGui = GUICreate("flicker test", 480, 320, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX))

Local $oIE = _IECreateEmbedded()
$hEmbed = GUICtrlCreateObj($oIE, 0, 0, 480, 320)
GUICtrlSetResizing(-1, $GUI_DOCKBORDERS)

_IENavigate($oIE, "about:blank")
_IEDocWriteHTML($oIE, $sHTML)

GUISetState()

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

Win10

Share this post


Link to post
Share on other sites
Subz

What flicker? Windows 10 1703 x64 Enterprise

The following may help (can't try it myself though)

AutoIt Help _IECreateEmbedded
"You may have object visibility issues unless you use the Windows style $WS_CLIPCHILDREN in GUICreate()."

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

×