找回密码
 加入
搜索
查看: 2484|回复: 2

[AU3基础] [已解决]au3怎样窗口置顶,求帮忙

[复制链接]
发表于 2013-1-11 18:06:37 | 显示全部楼层 |阅读模式
本帖最后由 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楼
发表于 2013-1-11 18:15:13 | 显示全部楼层
回复 1# y1751


    winsetontop
 楼主| 发表于 2013-1-11 18:23:40 | 显示全部楼层
winsetontop好像不行
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-28 02:02 , Processed in 0.074276 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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