有谁知道是否真的可以使用 C# 设置窗口的高度,使其大于屏幕尺寸?
我在几个窗口上尝试过这样的事情:
SetWindowPos(handle, new IntPtr(0), 0, 0, 1024, 4000,
SetWindowPosFlags.SWP_SHOWWINDOW);
但是,它们永远不会超过屏幕尺寸 - 有解决办法吗?
最佳答案
不,虽然您正在使用 SetWindowPos
MSDN 文档,但在 Form.Size 上是不允许的属性(property)说:
The maximum value of this property is limited by the resolution of the screen on which the form runs. The value cannot be greater than 12 pixels over each screen dimension (horizontal + 12 and vertical + 12).
关于c# - 设置窗口高度大于屏幕高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8656200/