🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5140

Re: Icons from Windows

#5140
From: David Pedley
Date: Sun, 25 Sep 2005 15:32
39 lines
2312 bytes
Vladimir,
That works very well - many thanks.
How does one go about retrieving other icons available in windows, without 
knowing the resource identifiers? Is there any facility to enumerate these?
Best Regards,
David


"Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote in message 
news:43369ff2@newsgroups.borland.com...
> Place 4 TImage components (Image1 .. Image4) on
> your main form (Form1), place a button (Button1),
> and add this code to Button1::OnClick()
>
> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
>   Image1->Picture->Icon->Handle = LoadIcon( 0,MAKEINTRESOURCE(IDI_HAND));
>   Image2->Picture->Icon->Handle = LoadIcon( 
> 0,MAKEINTRESOURCE(IDI_QUESTION));
>   Image3->Picture->Icon->Handle = LoadIcon( 
> 0,MAKEINTRESOURCE(IDI_EXCLAMATION));
>   Image4->Picture->Icon->Handle = LoadIcon( 
> 0,MAKEINTRESOURCE(IDI_ASTERISK));
> }
>
> -- 
> Best regards,
> Vladimir Stefanovic
> "David Pedley" <david@pedley.ws> wrote in message 
> news:433696d4@newsgroups.borland.com...
>>I have written my own MessageBox routine in VCL to give more flexibility 
>>in button captions. Can anyone tell me how I can retrieve and use the 
>>icons that the standard Windows MessageBox uses (or indeed any other 
>>standard icons)?
>>
>> David
>>
>
> 
Technical Details
Message-ID: <4336c2b5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <433696d4@newsgroups.borland.com> <43369ff2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b0c352e883a8752f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "David Pedley" <david@pedley.ws>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <433696d4@newsgroups.borland.com> <43369ff2@newsgroups.borland.com>
Subject: Re: Icons from Windows
Date: Sun, 25 Sep 2005 16:32:45 +0100
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 81.137.108.217
Message-ID: <4336c2b5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127662261 81.137.108.217 (25 Sep 2005 08:31:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail