您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> C/C++ >> 求一段 E 文翻译

求一段 E 文翻译

来源:网络整理     时间:2016/9/4 19:00:06     关键词:

关于网友提出的“ 求一段 E 文翻译”问题疑问,本网通过在网上对“ 求一段 E 文翻译”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: 求一段 E 文翻译
描述:

SetConsoleWindowInfo
The SetConsoleWindowInfo function sets the current size and position of a console screen buffer's window.
BOOL SetConsoleWindowInfo(
  HANDLE hConsoleOutput,
  BOOL bAbsolute,
  const SMALL_RECT* lpConsoleWindow
);
bAbsolute 
[in] If this parameter is TRUE, the coordinates specify the new upper-left and lower-right corners of the window. If it is FALSE, the coordinates are offsets to the current window-corner coordinates. 
求上面参数为 false 的翻译?代码试验结果没发现窗体有变化

#include 
#include 
#include 
void main()
{
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); 
// 获取标准输出设备句柄
CONSOLE_SCREEN_BUFFER_INFO bInfo; // 窗口缓冲区信息
SMALL_RECT rc = {0,0, 80-50, 25-22}; // 重置窗口位置和大小
GetConsoleScreenBufferInfo(hOut, &bInfo );
_getch();
SetConsoleWindowInfo(hOut,false ,&rc);
GetConsoleScreenBufferInfo(hOut, &bInfo );
_getch();
CloseHandle(hOut); // 关闭标准输出设备句柄
}


解决方案1:

up

解决方案2:

SetConsoleWindowInfo 
The SetConsoleWindowInfo function sets the current size and position of a console screen buffer's window. 
SetConsoleWindowInfo函数集的SetConsoleWindowInfo当前大小和位置的控制台屏幕缓冲区的窗口。
bAbsolute 
[in] If this parameter is TRUE, the coordinates specify the new upper-left and lower-right corners of the window. If it is FALSE, the coordinates are offsets to the current window-corner coordinates. 
bAbsolute [in]如果这个参数是TURE,指定新的坐标左上角和右下角的角落窗口。如果是FALSE ,则坐标偏移到当前窗口角坐标。

解决方案3:

简单的中文解释下:
就是如果为true,就是绝对坐标,坐标指明了新窗口的左上右下坐标。 -- 例如当前窗口左上顶点为100,100 -- 你设置10,10 -- 则新的窗口坐标的左上顶点就是10,10
如果为false,就是相对坐标,是相对当前窗口的坐标偏移。 -- 例如当前窗口左上顶点为100,100 -- 你设置10,10 -- 则新窗口坐标的左上顶点就是110,110
明白否~?

解决方案4:

If it is FALSE, the coordinates are offsets to the current window-corner coordinates. 
如果为False, 则坐标为到窗口边角坐标的偏移。

解决方案5:

bAbsolute
绝对定位
[in]
输入值
If this parameter is TRUE, the coordinates specify the new upper-left and lower-right corners of the window.
TRUE表示绝对定位,坐标指明了窗口的新的左上角和右下角。
If it is FALSE, the coordinates are offsets to the current window-corner coordinates.
FALSE表示非绝对定位(相对定位),坐标是相对当前的角坐标的偏移。

解决方案6:

如果它是错误的,坐标是对当前窗口角落坐标的距离 


以上介绍了“ 求一段 E 文翻译”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3736330.html

相关图片

相关文章