Hi - It's been a while since I visited. The best VB6 help was always here.
Is there a reference created, or simply a long variable assigned a value, when using CopyIcon?
Private Sub Form_Load()
hIcon = CopyIcon(Image1.Picture.Handle)
End Sub
Private Sub Form_Paint()
DrawIconEx Picture1.hdc, 10, 10, hIcon, 12, 12, 0&, 0&, DI_NORMAL
End Sub
'is this neccessary
Private Sub Form_Unload(Cancel As Integer)
DestroyIcon hIcon
End Sub
Is there a reference created, or simply a long variable assigned a value, when using CopyIcon?
Private Sub Form_Load()
hIcon = CopyIcon(Image1.Picture.Handle)
End Sub
Private Sub Form_Paint()
DrawIconEx Picture1.hdc, 10, 10, hIcon, 12, 12, 0&, 0&, DI_NORMAL
End Sub
'is this neccessary
Private Sub Form_Unload(Cancel As Integer)
DestroyIcon hIcon
End Sub