Skip to content

Commit

Permalink
增加边框
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzxs committed Jul 28, 2022
1 parent d5a28eb commit 79f8348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions menu.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OnMessage(0x002B, "ODLB_DrawItem") ; WM_DRAWITEM


;设置圆角
SetTimer set_region, 10
;SetTimer set_region, 10

CoordMode, ToolTip, Screen
SetBatchLines -1
Expand Down Expand Up @@ -1184,7 +1184,8 @@ SetEditCueBanner(HWND, Cue) { ; requires AHL_L

set_region:
WinGetPos, X, Y, W, H, ahk_id %MyGuiHwnd%
WinSet, Region, 1-1 W%W% H%H% R5-5, ahk_id %MyGuiHwnd%
H -= 1
WinSet, Region, 1-0 W%W% H%H% R5-5, ahk_id %MyGuiHwnd%

DllCall("dwmapi\DwmSetWindowAttribute", "ptr", myguihwnd
, "uint", DWMWA_NCRENDERING_POLICY := 2, "int*", DWMNCRP_DISABLED := 1, "uint", 4)
Expand Down
Binary file modified menu.exe
Binary file not shown.

0 comments on commit 79f8348

Please sign in to comment.