obsidian-notes/代码/动态窗口大小、居中.md
CSSC-WORK\murmur 3e6078442b init version
2024-04-15 11:19:57 +08:00

355 B
Raw Permalink Blame History

title updated created
动态窗口大小、居中 2022-03-08 01:28:02Z 2022-03-08 01:26:16Z

使用setPos可动态调整窗口大小调整前需禁用dpiscaling调整后再打开

winform.enableDpiScaling(false)
winform.setPos(,,left+(w+padd)*size+left*2,top + ((w+padd)*(size+1)))
winform.enableDpiScaling()
winform.center(0)