创建特定窗口后如何调整其大小?
我想在创建某些游戏窗口(DirectX)后调整其大小,该游戏窗口允许通过鼠标从边缘调整大小。但我想自动执行此操作,因为通过鼠标很难做到这一点:光标在边缘处不可见,我必须首先对窗口进行散焦,以便能够通过单击边缘来调整大小。需要明确的是:我没有这个游戏的来源,所以我必须制作自己的程序来做到这一点。
这怎么能做到呢?或者更好的是:是否已经有现有的程序可以做这些事情?
I want to resize some game window (DirectX) after it has been created, the game window allows resizing by mouse from the edges. But i want to automate this because it's quite hard to do this by mouse: cursor is invisible at the edges and i must de-focus the window first to be able to resize by clicking at the edges. To be clear: i have no sources for this game, so i must make my own program to do this.
How can this be done? Or better: is there already existing programs to do these things?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能会出现问题,但最好先尝试简单的事情。
由于您的帖子标记为 C++,我想您正在寻找 WinAPI 解决方案。试试这个:
There might be problems, but its better to try simple things first.
As your post tagged with C++ I suppose you're looking for WinAPI solution. Try this one: