consatan 发表于 2010-3-24 22:09:34

窗口最大化有滚动条,窗口化后却没有

默认窗口是最大化的,此时如果网页内容比较多,则会出现滚动条
但是窗口化后却没有滚动条了,要怎么设置呢?

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include<ie.au3>
Example()
Func Example()
    Local $oIE, $GUIActiveX, $msg
    $oIE = ObjCreate("Shell.Explorer.2")
    GUICreate("Google", 800, 600, 0, 0, $WS_OVERLAPPEDWINDOW)
    $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, @DesktopWidth, @DesktopHeight-62)
    WinSetState ("", "", @SW_MAXIMIZE)
    GUISetState()
    $oIE.navigate("http://www.google.com")
    While 1
      $msg = GUIGetMsg()
      Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
      EndSelect
    WEnd
    GUIDelete()
EndFunc
页: [1]
查看完整版本: 窗口最大化有滚动条,窗口化后却没有