Re: [AD] Proposal for a set_icon function

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


----- Original Message -----
From: "Eric Botcazou" <ebotcazou@xxxxxxxxxx>
> > Now I'll wait your comments, then if you agree I could start coding it.
>
> Personally I find the mere idea of setting an icon at runtime lame...
> Couldn't anyone come up with a brilliant idea (utility, helper script or
> anything else) to set it at compile time ?

Er, I may make myself seem stupid here (as always ;), but can't you have a
set resource name for an icon (.rc windows):

ALLEGICON ICON "myicon.ico"

and check in the register class thing (if GetResource("ALLEGICON").....)
then put it in the icon member before registering the class.... You then get
the same icon for the exe as in the titlebar....




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/