图3-19 图片浏览器
[Visual Basic程序] Private Sub Form_Load ()
IMG onClick=over(this) title=放大Show.Stretch=True
cboFile.Addltem "位图文件(*.bmp)"
cboFile.Addltem "图标文件(*.ico)"
cboFile.Addltem "图元文件(*.wmf)"
cboFile.Addltem "JPEG文件(*.jpg)"
cboFile.Addltem "GIF文件(*.gif)"
cboFile.ListIndex = 0 (1)
End Sub Private Sub drvFile_Change
() (2) End
Sub Private Sub dirFile_Change () (3) End Sub Private
Sub cboFile_Click () (4)
Case 0
filFile. Pattern= "*.bmp"
Case 1
filFile. Pattern= "*.ico"
Case 2
filFile. Pattern= "*.wmf" Case
3 filFile. Pattern=
"*.jpg. Case 4
filFile. Pattern= "*.gif"
End Select End Sub Private
Sub filFile_Click() If (5)
Then IMG onClick=over(this)
title=放大Show. Picture= LoadPieture(filFile. Path+ filFile.FileName)
Else IMG
onClick=over(this) title=放大Show. Picture= LoadPicture( (6) +
"\" + (7) ) End If
End Sub