|
本帖最后由 wuweixian 于 2013-5-7 15:25 编辑
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GDIPlus.au3>
#Include <WinAPI.au3>
$Form1 = GUICreate("test", 600, 480,-1,-1,BitOr($WS_EX_TOOLWINDOW,$WS_POPUP))
GUISetFont(9, 400, 0, "微软雅黑")
GUISetBkColor(0x00FFFF)
$L18=GUICtrlCreateLabel("退出",10, 100, 70, 36)
;GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg(1)
if $nMsg[1] == $Form1 Then ;and $nMsg[0] == $WM_LBUTTONDOWN Then
DllCall( "user32.dll", "BOOL", "ReleaseCapture" )
DllCall( "user32.dll","LRESULT","SendMessage","HWND",$Form1,"UINT",$WM_SYSCOMMAND,"WPARAM",0xF010 + 2,"LPARAM",0)
EndIf
Switch $nMsg[0]
Case $L18
Exit
EndSwitch
WEnd |
评分
-
查看全部评分
|