找回密码
 加入
搜索
查看: 1887|回复: 0

[GUI管理] 窗口最大化有滚动条,窗口化后却没有

[复制链接]
发表于 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
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-21 05:10 , Processed in 0.076921 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表