home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form ToolWnd
- AutoRedraw = -1 'True
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Caption = "ToolWnd"
- ClientHeight = 1185
- ClientLeft = 1515
- ClientTop = 3885
- ClientWidth = 1875
- Height = 1590
- Left = 1455
- LinkTopic = "Form1"
- ScaleHeight = 79
- ScaleMode = 3 'Pixel
- ScaleWidth = 125
- Top = 3540
- Width = 1995
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 6
- Left = 0
- Picture = TOOLWND.FRX:0000
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 6
- TabStop = 0 'False
- Tag = "59,2,24,22"
- Top = 435
- Width = 360
- End
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 0
- Left = 345
- Picture = TOOLWND.FRX:0182
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 5
- TabStop = 0 'False
- Tag = "29,2,24,22"
- Top = 120
- Width = 360
- End
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 5
- Left = 345
- Picture = TOOLWND.FRX:0304
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 4
- TabStop = 0 'False
- Tag = "172,2,24,22"
- Top = 750
- Width = 360
- End
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 4
- Left = 0
- Picture = TOOLWND.FRX:0486
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 3
- TabStop = 0 'False
- Tag = "6,2,24,22"
- Top = 120
- Width = 360
- End
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 3
- Left = 0
- Picture = TOOLWND.FRX:0608
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 2
- TabStop = 0 'False
- Tag = "112,2,24,22"
- Top = 750
- Width = 360
- End
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 2
- Left = 345
- Picture = TOOLWND.FRX:078A
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 1
- TabStop = 0 'False
- Tag = "89,2,24,22"
- Top = 435
- Width = 360
- End
- Begin PictureBox Tool
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 1
- Left = 1020
- Picture = TOOLWND.FRX:090C
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 0
- TabStop = 0 'False
- Tag = "142,2,24,22"
- Top = 360
- Visible = 0 'False
- Width = 360
- End
- Option Explicit
- Dim StartExit As Integer
- Dim w As Integer
- Dim a As Integer
- Sub Form_Activate ()
- Dim rc As Integer
- Me.FillStyle = 0
- Me.FillColor = GetSysColor(2)
- rc = ExtFloodFill(Me.hDC, 13, 2, 0, 0)
- Me.FillStyle = 1
- a = True
- End Sub
- Sub Form_DblClick ()
- StartExit = -StartExit
- End Sub
- Sub Form_Deactivate ()
- Dim rc As Integer
- a = False
- Me.FillStyle = 0
- Me.FillColor = GetSysColor(3)
- rc = ExtFloodFill(Me.hDC, 13, 2, 0, 0)
- Me.FillStyle = 1
- End Sub
- Sub Form_Load ()
- Dim h As Integer
- Dim col As Long
- Me.AutoRedraw = True
- ToolhWnd = True
- w = (2 * Tool(0).Width - 1)
- Me.Width = w * stppx
- h = (3 * Tool(0).Height + 6)
- Me.Height = h * stppy
- Me.Line (0, 0)-(w - 1, h - 1), 0, B ' Rand um Fenster
- col = GetSysColor(2)
- Me.Line (12, 1)-(w - 2, 7), col, BF ' Titelleiste
- Me.Line (1, 8)-(w, 8), 0 ' Linie unter Titel
- Me.Line (11, 1)-(11, 8), 0 ' Linie links von Titel
- Me.Line (3, 3)-(8, 5), 0, B ' Schwarzes Rechteck
- Me.Line (4, 4)-(8, 4), RGB(255, 255, 255) ' Weiss f
- Me.Line (4, 6)-(9, 6), RGB(128, 128, 128) ' Schatten unten
- Me.Line (9, 4)-(9, 7), RGB(128, 128, 128) ' Schatten rechts
- Me.Picture = Me.Image
- Me.AutoRedraw = False
- Me.Refresh
- End Sub
- Sub Form_MouseDown (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Dim dc As Integer
- Dim dx As Integer, dy As Integer
- Dim mPos As apiPoint
- Dim oldpos As apiPoint
- Dim mRect As apiRect
- StartExit = False
- If Y < 9 Then
- If x > 10 Then
- FakeMove Me
- Screen.MousePointer = 0
- Else
- Me.DrawMode = 6
- Me.Line (1, 1)-(10, 7), 0, BF
- StartExit = True
- End If
- End If
- End Sub
- Sub Form_MouseUp (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Me.DrawMode = 13
- Me.Cls
- If StartExit = 1 Then Unload Me
- End Sub
- Sub Form_Paint ()
- Dim rc As Integer
- If a Then
- Me.FillStyle = 0
- Me.FillColor = GetSysColor(2)
- rc = ExtFloodFill(Me.hDC, 13, 2, 0, 0)
- Me.FillStyle = 1
- Else
- Me.FillStyle = 0
- Me.FillColor = GetSysColor(3)
- rc = ExtFloodFill(Me.hDC, 13, 2, 0, 0)
- Me.FillStyle = 1
- End If
- End Sub
- Sub Form_Unload (Cancel As Integer)
- Dim h As Integer
- h = 15 * (GetSystemMetrics(15) + GetSystemMetrics(4) + 2 * GetSystemMetrics(33) - GetSystemMetrics(6)) + MainWnd.ToolBar.Height
- On Error Resume Next
- MainWnd.Height = h
- ToolhWnd = False
- End Sub
- Sub Tool_MouseDown (Index As Integer, Button As Integer, Shift As Integer, x As Single, Y As Single)
- If ButtonDown(Tool(Index)) Then
- Select Case Index
- Case 0
- Case 1
- Case 2
- Case 3
- Case 4
- Case 5
- Case 6
- Case Else
- End Select
- End If
- End Sub
-