在vb6.0中 怎么才能在picturebox 中已经显示了字母<汉字>,但要求是从底五个像素开始显示.怎么才能做到啊?又怎么获取picturebox中的文本呢,
我已经定义了
Picture1.ScaleMode = vbpixel
如何定义picturebox中的汉字的高度是12个像素?本来想用Picture1.TextHeight ,但他是只读的.
还有就是用什么东西可以使vb工程打包成一个安装的软件,?????
各位大哥/大姐 下面的程序是怎么使用的呀?
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)
Private Type plogfont
lfHeight As Long
lfWidth As Long
lfEscapement As Long
lfOrientation As Long
lfWeight As Long
lfItalic As Boolean
lfUnderline As Boolean
lfStrikeOut As Byte
lfCharSet As Byte
lfOutPrecision As Byte
lfClipPrecision As Byte
lfQuality As Byte
lfPitchAndFamily As Byte
lffontname As String
End Type
Public plogfont As LOGFONT
Private Sub send_Click()
Dim hfont As Long, hfontsrc As Long
With plogfont
.lfHeight = 12
.lfWidth = 9
.lfEscapement = 0
.lfOrientation = 0
.lfWeight = FW_NORMAL
.lfItalic = False
.lfUnderline = False
.lfStrikeOut = False
.lfCharSet = DEFAULT_CHARSET
.lfOutPrecision = OUT_DEVICE_PRECIS
.lfClipPrecision = CLIP_DEFAULT_PRECIS
.lfQuality = DEFAULT_QUALITY
.lfPitchAndFamily = DEFAULT_PITCH
.lffontname = "Courier"
End With
hfont = CreateFont(plogfont)
我这样弄,还是不对啊 他说plogfont 是argument not option 的错误,究竟该怎么办的呀 嘿嘿 在一次求救