From: Bernd.Specht@gmx.com (Bernd Specht)
Subject: Re: set programm icon
Date: 15 Jun 2004 19:34:34 GMT
Date: 2004-06-15T21:34:34+02:00 [thread overview]
Message-ID: <Xns9509DB74BD7CABerndSpechtgmxcom@151.189.20.10> (raw)
In-Reply-To: can7h9$ahd$04$1@news.t-online.com
"Tanker" <Tanker93@hotmail.com> wrote in
news:can7h9$ahd$04$1@news.t-online.com:
> Thanx Jano, it almost worked perfectly! But the programicon in the
> upper left corner of the programwindow is still the standardicon and
> not my programicon (shown in the explorer!)
> Maby someone can tell my the parameter for the gnat compiler?
>
> Thanx a lot !!!
Hi,
it works for me since GNAT 3.12p. I don't use RCL, I use RC and CVTRES which
comes (for example) with Aonix (the special edition included in Barnes
book).
Here is what I do:
In the resource-file:
#include "resourceid.h"
// Icon
AM_ICON ICON DISCARDABLE "GENERIC.ICO"
In the ada-source:
wndclass.hIcon := LoadIcon (hInstance,
LPCSTRofIntResource(ResourceID.AM_ICON));
You do not need the linker_options. When you work with an actual version of
AdaGide, then you can include your resource-file in the build process:
"Tools" -> ""Resource Options" -> "Resource file"
Enter here the name of your resource-file.
You can choose different resource compilers here:
"Tools" -> ""Resource Options" -> "Resource compiler"
next prev parent reply other threads:[~2004-06-15 19:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-14 16:22 set programm icon Tanker
2004-06-14 17:18 ` Jano
2004-06-14 18:17 ` Tanker
2004-06-14 18:18 ` tmoran
2004-06-14 18:42 ` Tanker
2004-06-14 19:34 ` tmoran
2004-06-15 9:11 ` Jano
2004-06-15 16:23 ` Tanker
2004-06-15 19:34 ` Bernd Specht [this message]
2004-06-15 21:22 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox