这个意思吗?#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
; 创建一个带有标签的窗口
$hGUI = GUICreate("Test", 600, 200, -1, -1)
$Input1 = GUICtrlCreateInput("", 60, 25, 200, 26)
GUICtrlSetFont(-1, 11, 400, 0, "微软雅黑")
$hLabel = GUICtrlCreateLabel("分析", 270, 22, 60, 33)
GUICtrlSetFont(-1, 18, 350, 0, "微软雅黑")
GUICtrlSetBkColor(-1, 0x409eff)
GUICtrlSetColor(-1, 0xffffff)
GUISetState(@SW_SHOW, $hGUI)
; 创建一个圆角区域
$hRgn = _WinAPI_CreateRoundRectRgn(0, 0, 60, 33, 20, 20)
; 将标签的区域设置为圆角区域
_WinAPI_SetWindowRgn(GUICtrlGetHandle($hLabel), $hRgn)
; 等待用户关闭窗口
While GUIGetMsg() <> $GUI_EVENT_CLOSE
Sleep(10)
WEnd
; 清理
_WinAPI_DeleteObject($hRgn)
|