ExtTextOut - 扩展的文本输出;
win32 api的声明如下;
ExtTextOut(
DC: HDC; {设备环境句柄}
X, Y: Integer; {起点坐标}
Options: Longint; {选项}
Rect: PRect; {指定显示范围; 0 表示限制范围}
Str: PChar; {字符串指针}
Count: Longint; {字符串长度}
Dx: PInteger {表示字符间距的数组; 是可选值}
): BOOL;
//Options 参数可选值:
ETO_OPAQUE = 2; {输出前, 用当前背景色填充矩形}
ETO_CLIPPED = 4; {剪切输出, 只输出矩形范围内的文本}
ETO_GLYPH_INDEX = 10;
ETO_RTLREADING = 80;
ETO_NUMERICSLOCAL = 400;
ETO_NUMERICSLATIN = 800;
ETO_IGNORELANGUAGE = 1000;
ETO_PDY = 2000;文章来源:https://www.toymoban.com/news/detail-727445.html
VC6新建一个单文档工程;文章来源地址https://www.toymoban.com/news/detail-727445.html
void CExtView::OnDraw(CDC* pDC)
{
CExtDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
CRect rect1(10,10,250,200);
CString str1 = "Delphi";
int iArray[] = {1
到了这里,关于MFC ExtTextOut函数学习的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!