Extracting associated file icons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Extracting associated file icons

Maarten Mostert-2

Hi,

 

I know that the VW developers must have difficult times to transform DSV into Grid but if there is some time less or if they’re in lack of ideas they might have time to integrate this VB or C# feature?

 

http://msdn2.microsoft.com/en-us/library/ms404308.aspx

 

On Apple that would probably start somewhere here:

 

http://developer.apple.com/documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html#//apple_ref/c/func/QLThumbnailRequestSetImage

 

Dropping a file into your application I love that,...Having it shown with the right icon that is really cool !

 

Rgrds,

 

@+Maarten,

Reply | Threaded
Open this post in threaded view
|

RE: Extracting associated file icons

Steven Kelly
Message
If you can use DLLCC, it shouldn't be too hard to do yourself with shell32.dll's ExtractAssociatedIconA and user32.dll's DrawIcon:
Steve
-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: 20. marraskuuta 2007 11:33
To: [hidden email]
Subject: Extracting associated file icons

Hi,

 

I know that the VW developers must have difficult times to transform DSV into Grid but if there is some time less or if they’re in lack of ideas they might have time to integrate this VB or C# feature?

 

http://msdn2.microsoft.com/en-us/library/ms404308.aspx

 

On Apple that would probably start somewhere here:

 

http://developer.apple.com/documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html#//apple_ref/c/func/QLThumbnailRequestSetImage

 

Dropping a file into your application I love that,...Having it shown with the right icon that is really cool !

 

Rgrds,

 

@+Maarten,

Reply | Threaded
Open this post in threaded view
|

Re: Extracting associated file icons

Mark Pirogovsky-3
There was an implementation for Icon related staff in the WindowsGodies
  parcel.

ExtractAssociatedIcon: ; ExtractIcon:  to name a few.


Steven Kelly wrote:

>
> If you can use DLLCC, it shouldn't be too hard to do yourself with
> shell32.dll's ExtractAssociatedIconA and user32.dll's DrawIcon:
> http://msdn2.microsoft.com/en-us/library/ms648067.aspx
> Steve
>
>     -----Original Message-----
>     From: [hidden email] [mailto:[hidden email]]
>     Sent: 20. marraskuuta 2007 11:33
>     To: [hidden email]
>     Subject: Extracting associated file icons
>
>     Hi,
>
>      
>
>     I know that the VW developers must have difficult times to transform
>     DSV into Grid but if there is some time less or if they’re in lack
>     of ideas they might have time to integrate this VB or C# feature?
>
>      
>
>     http://msdn2.microsoft.com/en-us/library/ms404308.aspx
>     <http://msdn2.microsoft.com/en-us/library/ms404308.aspx>
>
>      
>
>     On Apple that would probably start somewhere here:
>
>      
>
>     http://developer.apple.com/documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html#//apple_ref/c/func/QLThumbnailRequestSetImage
>     <http://developer.apple.com/documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html#//apple_ref/c/func/QLThumbnailRequestSetImage>
>
>      
>
>     Dropping a file into your application I love that,...Having it shown
>     with the right icon that is really cool !
>
>      
>
>     Rgrds,
>
>      
>
>     @+Maarten,
>

Reply | Threaded
Open this post in threaded view
|

Re: Extracting associated file icons

Maarten Mostert-2
In reply to this post by Maarten Mostert-2

Thanks Steve and Mark for the tips.

 

Unfortunately DLCC is not yet in my scope of knowledge, I tried to do something with the following methods in the windows goodie but I’m incapable of filling in the right things.  They keep on giving me errors like External Object Not Found or handle error.

 

 

ExtractAssociatedIcon: hInst with: lpIconPath with: lpiIcon

            <C: HICON ExtractAssociatedIcon(HINSTANCE hInst, LPTSTR lpIconPath, LPWORD lpiIcon)>

            ^self externalAccessFailedWith: _errorCode

 

 

CreateIcon: hInstance with: nWidth with: nHeight with: cPlanes with: cBitsPixel with: lpbANDbits with: lpbXORbits

            <C: HICON CreateIcon(HINSTANCE hInstance, int nWidth, int nHeight, BYTE cPlanes, BYTE cBitsPixel, const BYTE *lpbANDbits,  const BYTE *lpbXORbits)>

            ^self externalAccessFailedWith: _errorCode

 

 

Rgrds,

 

Maarten,



> Message du 20/11/07 15:47

> De : "Mark Pirogovsky"
> A : [hidden email]
> Copie à : [hidden email]
> Objet : Re: Extracting associated file icons
>
> There was an implementation for Icon related staff in the WindowsGodies
> parcel.
>
> ExtractAssociatedIcon: ; ExtractIcon: to name a few.
>
>
> Steven Kelly wrote:
>
> >
> > If you can use DLLCC, it shouldn't be too hard to do yourself with
> > shell32.dll's ExtractAssociatedIconA and user32.dll's DrawIcon:
> > http://msdn2.microsoft.com/en-us/library/ms648067.aspx
> > Steve
> >
> > -----Original Message-----
> > From: [hidden email] [mailto:[hidden email]]
> > Sent: 20. marraskuuta 2007 11:33
> > To: [hidden email]
> > Subject: Extracting associated file icons
> >
> > Hi,
> >
> >
> >
> > I know that the VW developers must have difficult times to transform
> > DSV into Grid but if there is some time less or if they’re in lack
> > of ideas they might have time to integrate this VB or C# feature?
> >
> >
> >
> > http://msdn2.microsoft.com/en-us/library/ms404308.aspx
> >
> >
> >
> >
> > On Apple that would probably start somewhere here:
> >
> >
> >
> > http://developer.apple.com/documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html#//apple_ref/c/func/QLThumbnailRequestSetImage
> >
> >
> >
> >
> > Dropping a file into your application I love that,...Having it shown
> > with the right icon that is really cool !
> >
> >
> >
> > Rgrds,
> >
> >
> >
> > @+Maarten,
> >
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Extracting associated file icons

Mark Pirogovsky-3
There is a Package in the public store: "Window TrayIcons" - load it and
look into for the inspirations.  There is a example there how to set and
get Icons from the arbitrary *.exe or *.dll files aptly named: TrayIcon
example1.

Godd luck

Maarten MOSTERT wrote:

>   Thanks Steve and Mark for the tips.
>
>  
>
> Unfortunately DLCC is not yet in my scope of knowledge, I tried to do
> something with the following methods in the windows goodie but I’m
> incapable of filling in the right things.  They keep on giving me errors
> like External Object Not Found or handle error.
>
>  
>
>  
>
> ExtractAssociatedIcon: hInst with: lpIconPath with: lpiIcon
>
>             <C: HICON ExtractAssociatedIcon(HINSTANCE hInst, LPTSTR
> lpIconPath, LPWORD lpiIcon)>
>
>             ^self externalAccessFailedWith: _errorCode
>
>  
>
>  
>
> CreateIcon: hInstance with: nWidth with: nHeight with: cPlanes with:
> cBitsPixel with: lpbANDbits with: lpbXORbits
>
>             <C: HICON CreateIcon(HINSTANCE hInstance, int nWidth, int
> nHeight, BYTE cPlanes, BYTE cBitsPixel, const BYTE *lpbANDbits,  const
> BYTE *lpbXORbits)>
>
>             ^self externalAccessFailedWith: _errorCode
>
>  
>
>  
>
> Rgrds,
>
>  
>
> Maarten,
>
>
>
>      > Message du 20/11/07 15:47
>      > De : "Mark Pirogovsky"
>      > A : [hidden email]
>      > Copie à : [hidden email]
>      > Objet : Re: Extracting associated file icons
>      >
>      > There was an implementation for Icon related staff in the
>     WindowsGodies
>      > parcel.
>      >
>      > ExtractAssociatedIcon: ; ExtractIcon: to name a few.
>      >
>      >
>      > Steven Kelly wrote:
>      >
>      > >
>      > > If you can use DLLCC, it shouldn't be too hard to do yourself with
>      > > shell32.dll's ExtractAssociatedIconA and user32.dll's DrawIcon:
>      > > http://msdn2.microsoft.com/en-us/library/ms648067.aspx
>      > > Steve
>      > >
>      > > -----Original Message-----
>      > > From: [hidden email]
>     [mailto:[hidden email]]
>      > > Sent: 20. marraskuuta 2007 11:33
>      > > To: [hidden email]
>      > > Subject: Extracting associated file icons
>      > >
>      > > Hi,
>      > >
>      > >
>      > >
>      > > I know that the VW developers must have difficult times to
>     transform
>      > > DSV into Grid but if there is some time less or if they’re in lack
>      > > of ideas they might have time to integrate this VB or C# feature?
>      > >
>      > >
>      > >
>      > > http://msdn2.microsoft.com/en-us/library/ms404308.aspx
>      > >
>      > >
>      > >
>      > >
>      > > On Apple that would probably start somewhere here:
>      > >
>      > >
>      > >
>      > >
>     http://developer.apple.com/documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html#//apple_ref/c/func/QLThumbnailRequestSetImage
>      > >
>      > >
>      > >
>      > >
>      > > Dropping a file into your application I love that,...Having it
>     shown
>      > > with the right icon that is really cool !
>      > >
>      > >
>      > >
>      > > Rgrds,
>      > >
>      > >
>      > >
>      > > @+Maarten,
>      > >
>      >
>      >
>      >
>