how do i get an icon 
Author Message
 how do i get an icon

How do i get the icon from system.

If you change the folders icon (by changing themes) then the changes also
show in the the program.

Petter L.



Sat, 21 Oct 2000 03:00:00 GMT  
 how do i get an icon

Declare Function ExtractAssociatedIcon Lib "shell32.dll" Alias
"ExtractAssociatedIconA" (ByVal hInst As Long, ByVal lpIconPath As String,
lpiIcon As Long) As Long

WARNING, just a hint / grab from my source watch it closely..
(Leave buffer empty for map icons)

        hIcon = ExtractAssociatedIcon(App.hInstance, Buffer, 0&)

            iDum = DrawIcon(P.hdc, 0, 0, hIcon)
            iDum = DestroyIcon(hIcon)

Petter Lerdahl heeft geschreven in bericht

Quote:
>How do i get the icon from system.

>If you change the folders icon (by changing themes) then the changes also
>show in the the program.

>Petter L.



Sun, 22 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MCI Control Gets Into a Tizzy - Done Events Not Being Generated

2. ADO thinks DBMS is done, but DBMS ain't done

3. Getting TopLevel Item in Large Icon View

4. Getting an Icon from an exe file

5. Getting an icon from an Image

6. Getting the icon next to the clock

7. Getting rid of icon

8. Getting VB to click an icon??

9. Help: getting the associated icon form a particular file type

10. Getting registry values for icons.

11. Getting small icon from .ico file in VB5

12. Getting the App's Icon from within a VB4 App

 

 
Powered by phpBB® Forum Software