找回密码
 加入
搜索
查看: 1769|回复: 4

[AU3基础] 为什么猛击显示桌面,程序会出现问题

[复制链接]
发表于 2011-7-25 10:01:18 | 显示全部楼层 |阅读模式
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\documents and settings\administrator\桌面\form1_1.kxf

$Form1_1 = GUICreate("Form1", 210, 706, 643, 3)
$Group1 = GUICtrlCreateGroup("", 8, 392, 196, 233)


$Pic1 = GUICtrlCreatePic("F:\我的文档\My Pictures\02.jpg", 7, 8, 196, 380,$WS_CLIPSIBLINGS)




$ListView1 = GUICtrlCreateListView("专业名称", 16, 408, 179, 207)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 175)
GUICtrlSetFont($ListView1, 12)
$item1 = GUICtrlCreateListViewItem("test", $ListView1)

GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("马上报名", 8, 632, 195, 49)


GUISetState(@SW_SHOW)
;底层窗口
$hwnd = WinGetHandle("Program Manager", "")
DllCall("user32.dll", "hwnd", "SetParent", "hwnd", $Form1_1, "hwnd", $hwnd)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
 楼主| 发表于 2011-7-25 10:02:01 | 显示全部楼层
编译后在桌面运行,然后点多几次显示桌面
图片就会不显示了
发表于 2011-7-25 10:58:39 | 显示全部楼层
吓死我了,我还以为楼主说敲桌子, 会影响电脑里运行程序....
那电脑里应该有G-sensor吧..

原来是desktop
发表于 2011-7-25 12:45:42 | 显示全部楼层
你设父句柄桌面是有什么目的吗?
发表于 2011-7-25 18:36:13 | 显示全部楼层
你设父句柄桌面是有什么目的吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 02:50 , Processed in 0.076089 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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