CreateFont

此頁沒有內(nèi)容條目
內(nèi)容

CreateFont

VB聲明

Declare Function CreateFont Lib "gdi32" Alias "CreateFontA" (ByVal H As Long, ByVal W As Long, ByVal E As Long, ByVal O As Long, ByVal W As Long, ByVal I As Long, ByVal u As Long, ByVal S As Long, ByVal C As Long, ByVal OP As Long, ByVal CP As Long, ByVal Q As Long, ByVal PAF As Long, ByVal F As String) As Long

說明

用指定的屬性創(chuàng)建一種邏輯字體

返回值

Long,執(zhí)行成功則返回邏輯字體的句柄,零表示失敗。會設(shè)置GetLastError

參數(shù)表

參數(shù)

類型及說明

H

Long,IfHeight

W

Long,IfWidth

E

Long,IfEscapement

O

Long,IfOrientation

W

Long,IfWeight

I

Long,IfItalic

u

Long,IfUnderline

S

Long,IfStrikeOut

C

Long,IfCharSet

OP

Long,IfOutputPrecision

CP

Long,IfClipPrecision

Q

Long,IfQuality

PAF

Long,IfPitchAndFamily

F

String,IfFaceName

注解

VB的字體屬性在選擇字體的時候顯得更有效

Top