CustomWindow
最后更新于5个月前
此工具已开源发布
Software software = new Software(); software.Name = "自定义窗口"; software.ProjectID = "CustomWindow"; software.Release = "https://nullcraft.org/d/100"; software.ReleaseDate = DateTime.Parse("2024,12,09").ToString(); software.Language = new string[] { "简体中文" }; software.Program = "C#"; software.Framework = ".NET8"; NullCraftSoftwareList.add(software); Trace.WriteLine(NullCraftSoftwareList.Items.Conut()); >>> 23
通过调用 Windows API(Win32API) MoveWindow、SetWindowPos 实现对窗口句柄发送更新窗口位置、尺寸从而更改窗口的状态。
MoveWindow
SetWindowPos
了解更多API:
全部 Windows API 索引
了解 MoveWindow
了解 SetWindowPos
使用本工具需要先安装 .NET8 桌面运行环境。
视频教学: 点此前往查看视频
文字教学:
运行工具
选择程序路径或程序的进程名称
设置一个尺寸
点击 修改窗口按钮 测试是否修改成功