Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.GetIconInfo Method

Utility function, returns information for a certain icon or cursor handle

Syntax
Public Sub GetIconInfo (ByVal hIcon As Long, _
ByRef bIconOrCursor As Boolean, _
ByRef xHotspot As Long, _
ByRef yHotspot As Long, _
ByRef oDibMask As clsDIBSection, _
ByRef oDibColor As clsDIBSection)
Parameters
Parameter Description
ByVal hIcon As Long The icon or cursor handle to check
ByRef bIconOrCursor As Boolean True if icon, False for cursor
ByRef xHotspot As Long The X Hotspot for the cursor
ByRef yHotspot As Long The Y Hotspot for the cursor
ByRef oDibMask As clsDIBSection The transparency mask; if this element is Nothing the icon/cursor is a 32bpp image, completely managed by the oDibColor parameter
ByRef oDibColor As clsDIBSection The colors; if the result of this element is Nothing the icon/cursor is a 1bpp image, completely managed by the oDibMask parameter
Remarks