Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzxs committed Jul 28, 2022
1 parent 5bcc473 commit d5a28eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions menu.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ Gui Destroy
Gui Margin, 0, 0
Gui, Color, %BackgroundColor%, %BackgroundColor%
Gui, Font, s16 Q5, Consolas
Gui, -0x400000 +Border ;WS_DLGFRAME WS_BORDER(细边框) caption(标题栏和粗边框) = WS_DLGFRAME+WS_BORDER 一定要有WS_DLGFRAME否则没法双缓冲
Gui, +AlwaysOnTop -DPIScale +ToolWindow +HwndMyGuiHwnd +E0x02000000 +E0x00080000 ;+E0x02000000 +E0x00080000 双缓冲
Gui Add, Edit, hwndEDIT x0 w750 vQuery gType -E0x200
Gui, -0x400000 +Border ;WS_DLGFRAME WS_BORDER(细边框) caption(标题栏和粗边框) = WS_DLGFRAME+WS_BORDER 一定要有WS_BORDER否则没法双缓冲
Gui, +AlwaysOnTop -DPIScale +ToolWindow +HwndMyGuiHwnd +E0x02000000 +E0x00080000 ;+E0x02000000 +E0x00080000 双缓冲
Gui Add, Edit, hwndEDIT x0 y10 w750 vQuery gType -E0x200
SetEditCueBanner(EDIT, "INPUT COMMAND, Example: bd")
Gui, Font, s14, Consolas
Gui Add, ListBox, hwndLIST x0 y+0 h20 w750 vCommand gSelect AltSubmit -HScroll %OD_LB% -E0x200
Expand Down Expand Up @@ -1184,5 +1184,8 @@ SetEditCueBanner(HWND, Cue) { ; requires AHL_L

set_region:
WinGetPos, X, Y, W, H, ahk_id %MyGuiHwnd%
WinSet, Region, 0-0 W%W% H%H% R5-5, ahk_id %MyGuiHwnd%
WinSet, Region, 1-1 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)
return
Binary file modified menu.exe
Binary file not shown.

0 comments on commit d5a28eb

Please sign in to comment.