home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Coop2
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Coop2"
- ClientHeight = 1650
- ClientLeft = 1875
- ClientTop = 4320
- ClientWidth = 4065
- Height = 2055
- Left = 1815
- LinkTopic = "Form1"
- ScaleHeight = 1650
- ScaleWidth = 4065
- Top = 3975
- Width = 4185
- Begin ccSubClass SubClass1
- Left = 3450
- Messages = COOP2.FRX:0000
- Top = 480
- End
- Begin CommandButton ExitBut
- Caption = "Exit"
- Height = 525
- Left = 2700
- TabIndex = 8
- Top = 990
- Width = 1245
- End
- Begin Label TotalLab
- Height = 255
- Left = 1170
- TabIndex = 7
- Top = 1260
- Width = 1155
- End
- Begin Label AmountLab
- Height = 255
- Left = 1170
- TabIndex = 6
- Top = 900
- Width = 1155
- End
- Begin Label CountLab
- Height = 255
- Left = 1170
- TabIndex = 5
- Top = 540
- Width = 1155
- End
- Begin Label CompanyLab
- Height = 255
- Left = 1170
- TabIndex = 4
- Top = 180
- Width = 2745
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Total"
- Height = 255
- Index = 3
- Left = 150
- TabIndex = 3
- Top = 1260
- Width = 915
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Amount"
- Height = 255
- Index = 2
- Left = 150
- TabIndex = 2
- Top = 900
- Width = 915
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Count"
- Height = 255
- Index = 1
- Left = 150
- TabIndex = 1
- Top = 540
- Width = 915
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Company"
- Height = 255
- Index = 0
- Left = 150
- TabIndex = 0
- Top = 180
- Width = 915
- End
- Option Explicit
- Sub ExitBut_Click ()
- Unload Me
- End Sub
- Sub Form_Load ()
- SubClass1.HwndParam = hWnd
- SubClass1.RegMessage1 = COOP_MESSAGE
- End Sub
- Sub SubClass1_WndMessage (wnd As Integer, msg As Integer, wp As Integer, lp As Long, retval As Long, nodef As Integer)
- Dim cs As CoopStructure
- Dim lpcs As Long
- ' Get the address of this local CoopStructure
- ' and copy the contents of the lp address to
- ' this local CoopStructure
- lpcs = dwGetAddressForObject(cs)
- dwCopyDataBynum lp, lpcs, Len(cs)
- ' Place the contents of from the CoopStructure into
- ' the Labels on this form.
- CompanyLab.Caption = cs.CompanyName
- CountLab.Caption = cs.Count
- AmountLab.Caption = Format$(cs.Amount, "Currency")
- TotalLab.Caption = Format$(cs.Total, "Standard")
- End Sub
-