【发布时间】:2015-01-14 16:02:50
【问题描述】:
我正在尝试使一个函数成为允许我在 Windows 上移动和调整控制台大小的函数。 目前我是这样做的:
int CMD::setSizeAndMove(int top, int left, int width, int height)
//Here we change the size of the window, if the buffer is ok, and change the position
{
SMALL_RECT rect;
rect.Top = top;
rect.Left = left;
rect.Bottom = height;
rect.Right = width;
return SetConsoleWindowInfo(m_consoleHandle, true, &rect);
}
缓冲区没问题。我试着看错误,我得到了一个。错误 n°87 : Invalid Parameter : 参数不正确。
如何解决这个问题,我真的不明白我做错了什么。
【问题讨论】: