网站首页  词典首页

请输入您要查询的函数:

 

术语 getconsolefontsize
释义 GetConsoleFontSize
语法:
C++
COORD WINAPI GetConsoleFontSize(
__in HANDLE hConsoleOutput,
__in DWORD nFont
);
GetConsoleFontSize功能
检索由指定的控制台屏幕缓冲区中使用的字体大小。
参数
hConsoleOutput [in]
句柄到控制台屏幕缓冲区。句柄必须有GENERIC_READ访问的权利。有关更多信息,参见控制台缓冲区安全和访问权限。
nFont [in]
字体的大小,是要检索索引。该指数是通过调用函数的GetCurrentConsoleFont。
返回值
如果函数成功,返回值是一个坐标结构,它包含的宽度和字体中的每个字符高度的逻辑单位。的X成员包含的宽度,而y成员包含高度。
如果函数失败,宽度和高度都是零。为了获得更多错误信息,调用GetLastError。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0500或更高版本。有关详细信息,请参阅使用Windows头。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
控制台函数
控制台屏幕缓冲区
COORD
GetCurrentConsoleFont
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetConsoleFontSize Function
Retrieves the size of the font used by the specified console screen buffer.
Syntax
C++
COORD WINAPI GetConsoleFontSize(
__in HANDLE hConsoleOutput,
__in DWORD nFont
);
Parameters
hConsoleOutput [in]
A handle to the console screen buffer. The handle must have the GENERIC_READ access right. For more information, see Console Buffer Security and Access Rights .
nFont [in]
The index of the font whose size is to be retrieved. This index is obtained by calling the GetCurrentConsoleFont function.
Return Value
If the function succeeds, the return value is a COORD structure that contains the width and height of each character in the font, in logical units. The X member contains the width, while the Y member contains the height.
If the function fails, the width and the height are zero. To get extended error information, call GetLastError .
To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Console Functions
Console Screen Buffers
COORD
GetCurrentConsoleFont
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683165(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:20