本帖最后由 夜猫猫 于 2011-7-11 01:28 编辑
呵呵..刚下了个看了下.楼主.你不知道你菜单皮肤美化有问题吗?.圆角跑哪去了?.GIF)
GUISetState(@SW_SHOW)
_GUIRoundCorners($Gui, 5,1,20,20);定义窗口圆角度
Func _GUIRoundCorners($h_win, $i_x1, $i_y1, $i_x3, $i_y3) ;窗口圆角函数
Local $XS_pos, $XS_ret, $XS_ret2
$XS_pos = WinGetPos($h_win)
$XS_ret = DllCall("gdi32.dll", "long", "CreateRoundRectRgn", "long", $i_x1, "long", $i_y1, "long", $XS_pos[2], "long", $XS_pos[3], "long", $i_x3, "long", $i_y3)
If $XS_ret[0]Then
$XS_ret2 = DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $XS_ret[0], "int", 1)
EndIf
EndFunc
|