#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#Region ### START Koda GUI section ###
$Form1 = GUICreate("窗体1", 800, 500, 0, 0, $WS_POPUP, 0)
$back = GUICtrlCreateButton (" 返 回 ", 0, 0, 200, 50)
GuiCtrlSetState(-1,$GUI_SHOW)
;下面是关键
$oIE = ObjCreate("Shell.Explorer.2")
GUICtrlCreateObj($oIE, 0, 0, 800, 500)
$oIE.navigate("http://www.baidu.com/")
;上面是关键
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
调试时,按钮不显示,鼠标放到左上角才显示,是啥原因呢,请大神赐教 |