home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmXOR
- Caption = "XOR Drawing"
- ClientHeight = 4500
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 6255
- LinkTopic = "Form2"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 4500
- ScaleWidth = 6255
- Begin VB.PictureBox Picture1
- DrawMode = 7 'Invert
- ForeColor = &H000000FF&
- Height = 2895
- Left = 120
- ScaleHeight = 2865
- ScaleWidth = 5925
- TabIndex = 0
- Top = 60
- Width = 5955
- End
- Begin VB.Label Label1
- Caption = "Drag a window over the picture box and move it away. You should see some lines reappearing, and some vanishing."
- Height = 435
- Left = 120
- TabIndex = 2
- Top = 3900
- Width = 6015
- End
- Begin VB.Label lblText
- Caption = $"frmXOR.frx":0000
- Height = 795
- Left = 180
- TabIndex = 1
- Top = 3000
- Width = 5895
- End
- Attribute VB_Name = "frmXOR"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Declare Function Rectangle& Lib "gdi32" (ByVal hDC As Long, ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long)
- Private Sub Picture1_Paint()
- Dim dummy&
- dummy& = Rectangle&(Picture1.hDC, 10, 10, 380, 180)
- dummy& = Rectangle&(Picture1.hDC, 60, 60, 330, 130)
- dummy& = Rectangle&(Picture1.hDC, 40, 40, 350, 150)
- End Sub
-