wfyj.net
当前位置:首页 >> vB中的stDpiCturE怎么用?是干什么的? >>

vB中的stDpiCturE怎么用?是干什么的?

。。。Pic控件有这个属性么?StdPicture是picture对象 可不是Pic的属性 Private Sub Command1_Click() Dim X As StdPicture Set X = LoadPicture("d:\1.bmp") Picture1 = X End Sub Private Sub Command2_Click() Clipboard.SetData Picture1.Pi...

'用PaintPicture方法 目标控件.PaintPicture Me.Picture, 0, 0 用法参见MSDN PaintPicture 方法 用以在 Form, PictureBox 或 Printer 上绘制图形文件(.bmp、.wmf、.emf、.cur、.ico或 .dib)的内容。不支持命名参数。 语法 object.PaintPicture...

在工程中引用“OLE Automation”,那么 Dim IPic As stdPicture 就不会出错了 另外两个貌似应该是 Dim IPic As PictureBox Dim IPic As IPictureDisp 其实你把能够运行的工程和不能运行上述语句的工程的引用互相比较一下就知道是什么问题了。

在工程中引用“OLE Automation”,那么 Dim IPic As stdPicture 就不会出错了 另外两个貌似应该是 Dim IPic As PictureBox Dim IPic As IPictureDisp 其实你把能够运行的工程和不能运行上述语句的工程的引用互相比较一下就知道是什么问题了。

'使用 StdPicture 对象 Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long Private Sub Command1...

网站首页 | 网站地图
All rights reserved Powered by www.wfyj.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com