XP style icons

  • Thread starter Thread starter Marek
  • Start date Start date
M

Marek

Hi,

I would like to use stndard XP style icons (New, Open, Save, Print, etc...).
How can I extract them from OS?
I also need the same program to be run under Win2K and Win98 and, of course,
I would like the corresponding set
of icons to be extracted unthe these OSes. Is that possible? I am using VS
..NET 2003 and C# as a programming language.

regards,
Marek
 
Of course doing that violates the copyright, at least Microsoft's, if you
choose to steal icons from their products.

However, Marek probably wanted to show whatever icons were appropriate to
the system his code runs under, right? In that case you could just load the
corresponding icons from the system files on the fly, they're just icon
resources (unmanaged), all you need is the file name (user32.dll and
shell32.dll are the most likely candidates) and the icon ID (just open those
files in developer studio as resources and look it up).

Jerry
 
Hi Jerry,

Before I sent my post, I gave up the "crazy idea" of loading icons from
system resources on the fly with potential varying
icon indexes under different versions of Windows. I thought there must be an
elegant solution to this. Now it seems to me
there is no other way but dynamically retrieving icons from system files.

Thank you for your help,

Regards,
Marek
 
Back
Top