`
yiyeqinghuasoon
  • 浏览: 641624 次
文章分类
社区版块
存档分类
最新评论

Windows文本字体函数 - SetTextAlign

 
阅读更多
VB声明
Declare Function SetTextAlign Lib "gdi32" Alias "SetTextAlign" (ByVal hdc As Long, ByVal wFlags As Long) As Long
说明
设置文本对齐方式,并指定在文本输出过程中使用设备场景的当前位置
返回值
Long,前一个文本对齐标志,GDI_ERROR表示失败。会设置GetLastError
参数表
参数 类型及说明
hdc Long,设备场景的句柄
wFlags Long,参考GetTextAlign函数的返回值列表
在VB里使用

针对自己修改的任何VB窗体或控件,注意确定恢复其原始的对齐排列状态。可用GetTextAlign函数了解目前的对齐方式是什么

分享到:
评论

相关推荐

    API之网络函数---整理网络函数及功能

    SetMapperFlags Windows对字体进行映射时,可用该函数选择与目标设备的纵横比相符的光栅字体 SetTextAlign 设置文本对齐方式,并指定在文本输出过程中使用设备场景的当前位置 SetTextCharacterExtra 描绘文本的...

    Windows API函数大全

    SetMapperFlags Windows对字体进行映射时,可用该函数选择与目标设备的纵横比相符的光栅字体 SetTextAlign 设置文本对齐方式,并指定在文本输出过程中使用设备场景的当前位置 SetTextCharacterExtra 描绘文本的...

    windowsAPI函数

    也请参考SetTextAlign函数 GetAspectRatioFilterEx 用SetMapperFlags要求Windows只选择与设备当前纵横 比相符的光栅字体时,本函数可判断纵横比大小 GetCharABCWidths 判断TureType字体中一个或多个字符的A-B-C...

    GDI(widowsAPI函数)

    GDI(widowsAPI函数) AddFontResource 在Windows系统中添加一种字体资源 CreateFont 用指定的属性创建一种逻辑...也请参考SetTextAlign函数 GetAspectRatioFilterEx 用SetMapperFlags要求Windows只选择与设备当前纵横

    txt文档阅读器

    mPaint.setTextAlign(Align.LEFT);//设置文本对齐方式 mPaint.setTextSize(m_fontSize);//设置字体大小 mPaint.setColor(m_textColor);//设置颜色 mVisibleWidth = mWidth - marginWidth * 2; ...

    计步器的实现

    * 画步数的数值的字体大小 */ private float numberTextSize = 0; /** * 步数 */ private String stepNumber = "0"; /** * 开始绘制圆弧的角度 */ private float startAngle = 125; /** * 终点对应的...

    VC6使用word2003生成报表的示例

    // 在当前位置输入文字 void SetTextAlign(int val); // 设置文字对齐方式 void SetTextColor(COLORREF cr); // 设置文本颜色 void AddPic(CString FileName); // 在当前位置插入图片文件 ...

    打印打印预览例程凌晨孤星

    开始打印,正在打印,结束打印,设置打印信息,打印预览,打印,是否预览模式,取当前页,设置起始页,设置结束页,取起始页,取结束页,取绘图矩形区域,关于,TextOutA,GetStockObject,...MoveToEx,CreateFontA,SetTextAlign

    应用启动页自定义跳转计时器View Demo

    paint.setTextAlign(Paint.Align.CENTER); float textY = bounds.centerX(); float textS = (bounds.bottom + paint.ascent() / 2) - 10; if (!TextUtils.isEmpty(seconds)) canvas.drawText(seconds, bounds....

    stdafx.h代码

    // Note: WINDOWS.H already included from AFXV_W32.H #ifndef _INC_SHELLAPI #include #endif #ifndef __AFXRES_H__ #include <afxres.h> // standard resource IDs #endif #ifndef __AFXCOLL_H__ #...

    android折线图

    002 003 import java.util.ArrayList; ...004 import java.util.HashMap;...065 public void SetTuView(HashMap, Double> map,int totalvalue,int pjvalue,String xstr,String ystr,Boolean isylineshow) ...

Global site tag (gtag.js) - Google Analytics