本帖最后由 happytc 于 2011-10-25 08:26 编辑
回复 1# heavenm
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <WinAPIEx.au3> ;若没有WinAPIEx.au3文件,则注释掉此行和第10行(_WinAPI_SetWindowTheme($hButton, 0, 0)),开启11行(DllCall行)
Local $hGUI, $Button, $hButton
$hGUI = GUICreate("Test", 500, 500)
$Button = GUICtrlCreateButton("Test", 10, 10, 80, 30)
$hButton = GUICtrlGetHandle($Button)
_WinAPI_SetWindowTheme($hButton, 0, 0)
;DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $hButton, "wstr", 0, "wstr", 0)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|