realbasic-nug
[Top] [All Lists]

Re: Looking for a way query a Windows system for an icon associatedwith

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Looking for a way query a Windows system for an icon associatedwith a filename extension
From: "robl@no-no-badpuppy.com" <robl@no-no-badpuppy.com>
Date: Wed, 30 Jul 2008 17:21:20 -0400
Accept-language: en-US
Acceptlanguage: en-US
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <20087301959253275771.realbasic@garman.demon.co.uk>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thread-index: Acjyf9Q1itpn3DmZQvCrqzYGyASO+AACmF4D
Thread-topic: Looking for a way query a Windows system for an icon associatedwith a filename extension
Steve:

Hrmmmm.  This looks to be what I need.  I'll read up on those calls and see if 
I can get a Declare working for them in RB.  I'm  just now getting to Declares 
in my stage of RB learning.   I'll try following some of Arron's examples and 
see if I can make it work.

Thanks for pointing me at least to the right area of the Win32 API (new 
territory for me).

Robert


On 7/30/08 2:59 PM, "Steve Garman" <realbasic@garman.demon.co.uk> wrote:

> > Has anyone figured out how to do this?  If so, any tips would be much 
> > appreciated.

I haven't any code at the moment but in case it helps your search, I think
the Win APIs you are looking for are:

ExtractAssociatedIconA or ExtractAssociatedIconW (if the latter exists)
DrawIconEx
DestroyIcon

If you can't find any code, I'll try to work some out in a day or two.

--
Steve Garman
Using RB2008r2 Professional on Windows Vista Ultimate



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>