Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.CreatePictureFromIconHandle Function

Creates a standard picture of icon type from a icon handle

Syntax
Public Function CreatePictureFromIconHandle (ByVal hIcon As Long, _
Optional ByVal bUseACopy As Boolean = True) As StdPicture
Parameters
Parameter Description
ByVal hIcon As Long The icon handle
Optional ByVal bUseACopy As Boolean = True Refers the new picture handle to a newly created handle (in this case you need to Delete the original handle manually), otherwise the original handle is used (you don't need to clear the handle)
Remarks