-
ImageList_SetOverlayImage
Has anyone been able to use the ImageList_SetOverlayImage API in VB? In the
code below I'm trying to set the SHORTCUTARROW32 icon as the overlay image 1
in the imagelist. However, the API will always return zero.
Public Declare Function ImageList_SetOverlayImage Lib "Comctl32.dll" (himl
As Long, ByVal iImage As Long, ByVal iOverlay As Long) As Long
Form_Load()
With ImageList
.ImageHeight = 32
.ImageWidth = 32
With .ListImages
.Add , "ICON1", Image1.Picture
.Add , "SHORTCUTARROW32", imgArrow32.Picture
End With
lR = ImageList_SetOverlayImage(.hImageList, 1, 1)
If lR = 0 Then
Debug.Assert False
End If
End With
End Sub
thanks,
-Sergio
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks