|
楼主 |
发表于 2014-10-19 18:57
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Option Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const SWP_NOMOVE = &H2
Private Sub Form_Load()
SetWindowPos Picture1.hwnd, 0, 0, 0, Picture1.Width, 20000, SWP_NOMOVE
MsgBox Picture1.Height
End Sub
网上查到的,经测试,VB只能设到245745TWIPS(16383PIXELS),用上面的API可以设到32767PIXELS, 但上面的怎么用呀,不明白
|
|