1,453
社区成员
发帖
与我相关
我的任务
分享Dim bFull As Boolean
Private Sub MyFullScreen()
If (bFull) Then
' 如果是需要全屏,则
Me.BorderStyle = 0
Me.Caption = ""
'Me.WindowState = 0 '去掉
Me.Top = 0
Me.Left = 0
Me.Width = Screen.Width '这样设置宽度高度不对?
Me.Height = Screen.Height
Picture_PlayerWnd.Left = 0
Picture_PlayerWnd.Top = 0
Picture_PlayerWnd.Width = Me.Width '这样设置宽度高度总不对!不知道要怎么换算???
Picture_PlayerWnd.Height = Me.Height
Else
Me.BorderStyle = 2
Me.Caption = "MyFormDemo"
Me.Top = 0
Me.Left = 0
Me.WindowState = 0
Picture_PlayerWnd.Left = Me.Left
Picture_PlayerWnd.Top = Me.Top
Picture_PlayerWnd.Width = Me.Width '这里设置宽度高度总不对!不知道要怎么换算???
Picture_PlayerWnd.Height = Me.Height
End If
bFull = Not bFull
End Sub
Private Sub Picture_PlayerWnd_DblClick()
bFull = False
MyFullScreen
End Sub