本帖最后由 y1751 于 2013-1-11 18:29 编辑
调用usr32.dll中的setwindowpos,好像没有效果。求高手帮忙#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("操作提示", 543, 233, 276, 100)
GUISetIcon("C:\Users\Administrator.HCZX-20121202VA\Desktop\1111\1111\Number_003.ico", -1)
$Edit1 = GUICtrlCreateEdit("", 16, 16, 545, 217)
GUICtrlSetData(-1, "天才")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
DllCall("user32.dll","boll","SetWindowPos",$Form1, -1, 0, 0, 0, 0, 'SWP_NOACTIVATE')
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
还是用WinSetOnTop解决了,谢谢2楼 |