home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 1620
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 4410
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1620
- ScaleWidth = 4410
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 525
- Left = 1500
- TabIndex = 0
- Top = 540
- Width = 1245
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' Copyright
- 1997 by Desaware Inc. All Rights Reserved
- Private Declare Function EnumProps Lib "user32" Alias "EnumPropsA" (ByVal hwnd&, ByVal lpaddress&) As Long
- Private Declare Function SetProp Lib "user32" Alias "SetPropA" (ByVal hwnd&, ByVal lpstring As String, ByVal hdata&) As Long
- Private Declare Function RemoveProp Lib "user32" Alias "RemovePropA" (ByVal hwnd&, ByVal lpstring As String) As Long
- Private Sub Command1_Click()
- Dim l As Long
- l = EnumProps(Me.hwnd, AddressOf CbkEnumProps)
- Debug.Print l
- End Sub
- Private Sub Form_Load()
- Dim l As Long
- l = SetProp(Me.hwnd, "DesawareInc", 3)
- Debug.Print "Property set was " & l
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Dim l As Long
- l = RemoveProp(Me.hwnd, "DesawareInc")
- Debug.Print "Property removed was " & l
- End Sub
-