原帖由 liongodmien 于 2009-1-9 09:13 发表
如果只是一个图片的话,应该只会出现'空白'窗口
试试这段代码:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 363, 236, 331, 190)
$Pic1 = GUICtrlCreatePic("e:\006.jpg", 0, 0, 361, 233, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Pic1
run('RunDll32.exe url.dll,FileProtocolHandler "http://dvedit.5d6d.com"')
EndSwitch
WEnd
|