您可以在这里快速查找:


 
您的位置: 编程学习 > asp.net教程 > 200509
文章分类

Java技术
2005: 03 04 05 06 07 08
09 10 11 12
2006: 01 02

Asp.net
2005: 07 08 09 10 11 12
2006: 01 02

VB编程
2006: 02

Asp编程
2005: 11 12
2006: 01 02

C++/VC
2005: 10 11 12
2006: 01 02

Delphi
2005: 12
2006: 01 02

其它

 本文章适合所有读者

[原创]将OLE StdFont字体结构转换到API的LOGFONT字体结构

cso
´ 将OLE StdFont字体结构转换到API的LOGFONT字体结构
   With tLF

       sFont = myfont.Name
       temp = StrConv(sFont, vbFromUnicode)
       For iChar = 1 To Len(sFont)
            .lfFaceName(iChar - 1) = temp(iChar - 1)
       Next iChar
       .lfItalic = myfont.Italic
       .lfWeight = IIf(myfont.Bold, FW_BOLD, FW_NORMAL)
       .lfWidth = fontwidth
       .lfHeight = fontheight
       .lfUnderline = fontunderline
       .lfStrikeOut = fontStrikethrough
       .lfCharSet = myfont.Charset
    End With
hFnt = CreateFontIndirect(tLF)´ 转换LOGFONT结构到字体句柄