Win32函数获取窗口的最大行数和列数 [英] Win32 function to get maximum No. of Rows and Cols of the window
本文介绍了Win32函数获取窗口的最大行数和列数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何功能可以获取输出窗口的最大行数和列数.
问候,
Kiran
Hi,
Is there any function to get the maximum number of rows and cols of the output window.
Regards,
Kiran
推荐答案
Windows GUI
不提供此类信息,因为它支持比例字体.仅当您使用等宽字体时,才可以使用 GetWindowRect [ ^ ],例如 GetTextExtentPoint32 [ ^ ].
Windows GUI
doesn''t provide such a information, because it supports proportional fonts. Only if you have a monospaced font then you may compute rows and cols values using functions like GetWindowRect[^] and, for instance, GetTextExtentPoint32[^].
这篇关于Win32函数获取窗口的最大行数和列数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文