您需要 登录 才可以下载或查看,没有账号?加入
举报
#include <WindowsConstants.au3> #include <GuiConstantsEx.au3> Opt('MustDeclareVars', 1) Local $hGUI, $hWnd, $Pic1,$nMsg,$size ,$hImage,$Imageh,$Imagew $hGUI = GUICreate("AU3论坛", 800, 500, 302, 218) $hWnd = WinGetHandle("AU3论坛") $Pic1 = GUICtrlCreatePic(@ScriptDir & "\test1.jpg", 0, 0,0,0) GUISetState(@SW_SHOW) ;MsgBox(0, "", _GDIPlus_ImageGetWidth($hImage)) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
不知道4楼用的是什么版本的AU3我的用AUTOIT_3.3.1.1的要添加#Include 要不就出错...添加了之后返回的是-1 MsgBox(0, "", _GDIPlus_ImageGetWidth($hImage)) AUFS 发表于 2009-8-19 15:41
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 12:28 , Processed in 0.081400 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.