为什么猛击显示桌面,程序会出现问题
#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
编译后在桌面运行,然后点多几次显示桌面
图片就会不显示了 吓死我了,我还以为楼主说敲桌子, 会影响电脑里运行程序....
那电脑里应该有G-sensor吧..
原来是desktop 你设父句柄桌面是有什么目的吗? 你设父句柄桌面是有什么目的吗?
页:
[1]