知道句柄,怎样改变窗口大小.
解决方案 »
- VC++语法结构写的动态库在VB中怎么调用
- 请问C/S结构网络版软件如何控制客户端的数量呢?
- 如何判断计算机在30分钟之内没有任何操作?
- 将一个recordset赋予 DataGrid 的问题?
- 12月24日做手术,请大家进来
- VB的 Richtx32.ocx 能否加入背景图片?找了N个网站也无人能答...
- 我想用个组合框,组合框中的东西不能被编辑,且组合框刚开始有个默认值应该则么写,解决马上给分
- 请问用vb自带的打包程序在2000系统下打包,但在xp下安装时会出问题
- 我是vb初学者,请介绍几个好的vb网站
- 用DATA绑定ACCESS的问题
- 大哥大姐们,帮帮小弟呀!关于Activebar2.0 高分送
- 如何改变滚动条的颜色?
Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function IsWindowEnabled Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As LongPrivate Sub Command1_Click()
Dim bl As Boolean
'Is the window enabled?
bl = IsWindowEnabled(Me.hwnd)
MsgBox "Is the form enabled? " + Str$(bl)
'Move the window
MoveWindow Me.hwnd, 0, 0, 200, 200, 1
'Show the window
Me.Show
'Wait 5 seconds
t = Timer
Do
'Show the remaining time in the form's caption
Me.Caption = 5 - Int(Timer - t)
DoEvents
Loop Until Timer > t + 5
'Destroy the window
DestroyWindow Me.hwnd
End Sub
MoveWindow Me.hwnd, 0, 0, 200, 200, 1
End Sub