这是我想的,没有经过测试,不知道管不管用。在Form_Resize过程中指定Form.Width、Form.Height为你想要的大小。If Me.Width < 1000 And Me.Height < 1000 then
Me.Width = 1000
Me.Height = 1000
End if
Me.Width = 1000
Me.Height = 1000
End if
解决方案 »
- MFC中利用SetTimer()函数,在OnTime()函数中来显示多幅.bmp格式的文件
- 如何清除API的SetPixel函数画的线
- 一个利用 Data1 控件的查询的问题----------在线等待!!!!!!
- 很困惑的简单问题,Format函数转换之后,中午12点变成了“12:00:00 下午”,午夜零点变成了“12:00:00 上午”
- =====关于用VB控制其他应用程序的高难度问题!!!!!!====
- 请问,listview中显示的listtiems,可以点击哪个就处理哪个吗?
- 如何判断一个变体型变量是否指向一个窗体?
- #################有愿意创业的么???????/#####################
- @@@@@@@@@printer对象的currentX是什么单位?能不能用毫米?
- 天好热啊,我们这里有38度!!!!!!!!!!!!!!
- 问个关于文件操作的问题
- 精通Delphi,CB还有必要学VC吗?
Private Sub Form_Resize()
Dim i As Integer
'防止窗口最小化超标
If Me.Width < 1250 Then Me.Width = 1250
If Me.Height < 2600 Then Me.Height = 2600
'重绘窗体元件
Picture1.Width = Me.Width - 95
Picture1.Height = Me.Height - 1600
For i = 1 To UBound(cmdListGroup)
cmdListGroup(i).Width = Picture1.Width - 70
cmdListGroup(i).Width = cmdMyFriends.Width
Next i
cmdSearch.Top = Picture1.Height + 20
cmdSearch.Width = Picture1.Width - 20
cmdBoardcast.Top = cmdSearch.Top + 300
cmdBoardcast.Width = Picture1.Width - 20
End Sub
请emali:[email protected]
名称:《窗体最小尺寸控制演示》