谁能用VB帮我编一个简单的程序

来源:百度知道 编辑:UC知道 时间:2024/05/16 13:14:22
用VB语言编写一个图片浏览程序,要求具有图形用户界面(如附件图),能够实现以下操作功能:
1、能够显示bmp,jpg,tif格式图片;
2、能够实现图片的缩放显示;
3、能够浏览打开指定的图片文件
4、通过TreeView控件对历史文件实现管理
5、除状态栏和标题栏,其它所有控件均可浮动显示
6、其它方便用户操作功能(要求其它功能越多越好)
7、对话框:程序应至少使用一个对话框,对话框中包括如下控件:
复选框、单选按钮、多行文本框、列表框(样式见附件)对话框应实现对程序参数的控制和调整。

碰巧我也在做图片浏览器的程序,我能给你部分代码,有些你要比较难实现。

打开tiff文件的模块

Private Enum GpStatus
[OK] = 0
[GenericError] = 1
[InvalidParameter] = 2
[OutOfMemory] = 3
[ObjectBusy] = 4
[InsufficientBuffer] = 5
[NotImplemented] = 6
[Win32Error] = 7
[WrongState] = 8
[Aborted] = 9
[FileNotFound] = 10
[ValueOverflow ] = 11
[AccessDenied] = 12
[UnknownImageFormat] = 13
[FontFamilyNotFound] = 14
[FontStyleNotFound] = 15
[NotTrueTypeFont] = 16
[UnsupportedGdiplusVersion] = 17
[GdiplusNotInitialized ] = 18
[PropertyNotFound] = 19
[PropertyNotSupported] = 20
End Enum

'需要声明的结构:

Private Type GdiplusStartupInput
GdiplusVersion As Long
DebugEventCallback As Long
SuppressBackgroundThread As Long
SuppressExternalCodecs As Long
End Type