![](https://aarlib.52hy.top/upload/files/20240421/1713681140.png)
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add()
/*}}*/
DwmApi = raw.loadDll("DwmApi.dll");
dm= DwmApi.api("DwmSetWindowAttribute","INT(
addr hwnd,
INT dwAttribute,
struct pvAttribute,
INT cbAttribute
)" )
ret = dm(winform.hwnd,20,{ int i = 1 },4);
winform.show();
win.loopMessage();
api函数说明:https://learn.microsoft.com/zh-cn/windows/win32/api/dwmapi/nf-dwmapi-dwmsetwindowattribute