Form1.frm
资源名称:mulmon.zip [点击查看]
上传用户:zqemid3000
上传日期:2007-01-04
资源大小:158k
文件大小:3k
源码类别:
多显示器编程
开发平台:
Visual C++
- VERSION 5.00
- Object = "{223DE665-E7D7-11D2-8572-00001A0169AC}#1.0#0"; "MSCREE~1.OCX"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 213
- ScaleMode = 3 'Pixel
- ScaleWidth = 312
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command2
- Caption = "Command2"
- Height = 375
- Left = 1680
- TabIndex = 4
- Top = 2760
- Width = 1335
- End
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 375
- Left = 0
- TabIndex = 1
- Top = 2760
- Width = 1575
- End
- Begin MSCREENINFOLib.MScreenInfo MScreenInfo1
- Left = 3720
- Top = 1560
- _Version = 65536
- _ExtentX = 1296
- _ExtentY = 1085
- _StockProps = 0
- End
- Begin VB.Label Label3
- Caption = "Label3"
- Height = 255
- Left = 0
- TabIndex = 3
- Top = 840
- Width = 4575
- End
- Begin VB.Label Label2
- Caption = "Label2"
- Height = 255
- Left = 0
- TabIndex = 2
- Top = 480
- Width = 4575
- End
- Begin VB.Label Label1
- Caption = "Label1"
- Height = 255
- Left = 0
- TabIndex = 0
- Top = 120
- Width = 4575
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Label1.Caption = "Screen Number = " & Str(MScreenInfo1.MonitorNum) & " Primary is " & Str(MScreenInfo1.PrimaryScreen)
- Label2.Caption = "Screen1: Width-" & Str(MScreenInfo1.ScreenWidth(0)) & " Height-" & Str(MScreenInfo1.ScreenHeight(0)) & " Top-" & Str(MScreenInfo1.ScreenTop(0)) & " Left-" & Str(MScreenInfo1.ScreenLeft(0))
- Label3.Caption = "Screen2: Width-" & Str(MScreenInfo1.ScreenWidth(1)) & " Height-" & Str(MScreenInfo1.ScreenHeight(1)) & " Top-" & Str(MScreenInfo1.ScreenTop(1)) & " Left-" & Str(MScreenInfo1.ScreenLeft(1))
- End Sub
- Private Sub Command2_Click()
- Form2.Show 0, Me
- Form2.Move 1024 * 15, 0, Form2.Width, Form2.Height
- Form2.WindowState = 2
- End Sub