1. Setting the windows icon

------=_NextPart_000_0009_01C02D96.C96ECCC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

As there are so many new features in Win32Lib now, and because I have =
been 'away' from Euphoria programming for a while now, I am beginning =
again by asking a question that might be found be reading the =
documentation, but it's huge by now and I don't know were to start =
looking.
My question concerns the use of a self-defined icon, to place in the =
Windows 'sysmenu' (upper left corner) I tried the following, but I got a =
Win32Lib error 'getHandle failed'.

------------------------------
include Win32Lib.ew

constant Win =3D create(Window, "Test Icon", 0, 220, 60, 360, 480, 0)

object junk

constant i1083 =3D addIcon(extractIcon("1083.ico"))

junk =3D sendMessage(Win, WM_SETICON, 0, i1083)

WinMain(Win, Normal)
----------------------------------

Which is the proper way to do this?

Thanks,    Ad

------=_NextPart_000_0009_01C02D96.C96ECCC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hello,</DIV>
<DIV>&nbsp;</DIV>
<DIV>As there are so many new features in Win32Lib now, and because I =
have been=20
'away' from Euphoria programming for&nbsp;a while now, I am beginning =
again by=20
asking a question that might be found be reading the documentation, but =
it's=20
huge by now and I don't know were to start looking.</DIV>
<DIV>My question concerns the use of a self-defined icon, to place in =
the=20
Windows 'sysmenu' (upper left corner) I tried the following, but I got a =

Win32Lib error 'getHandle failed'.</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------------</DIV>
<DIV>include Win32Lib.ew</DIV>
<DIV>&nbsp;</DIV>
<DIV>constant Win =3D create(Window, "Test Icon", 0, 220, 60, 360, 480, =
0)</DIV>
<DIV>&nbsp;</DIV>
<DIV>object junk</DIV>
<DIV>&nbsp;</DIV>
<DIV>constant i1083 =3D addIcon(extractIcon("1083.ico"))</DIV>
<DIV>&nbsp;</DIV>
<DIV>junk =3D sendMessage(Win, WM_SETICON, 0, i1083)</DIV>
<DIV>&nbsp;</DIV>
<DIV>WinMain(Win, Normal)</DIV>
<DIV>----------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Which is the proper way to do this?</DIV>
<DIV>&nbsp;</DIV>

------=_NextPart_000_0009_01C02D96.C96ECCC0--

new topic     » topic index » view message » categorize

2. Re: Setting the windows icon

On Wed, 4 Oct 2000 00:05:20 +0200, Ad Rienks wrote:

>Hello,
>
>As there are so many new features in Win32Lib now, and because I have
been 'away' from Euphoria programming for a while now, I am beginning again
by asking a question that might be found be reading the documentation, but
it's huge by now and I don't know were to start looking.
>My question concerns the use of a self-defined icon, to place in the
Windows 'sysmenu' (upper left corner) I tried the following, but I got a
Win32Lib error 'getHandle failed'.

Try this:
------------------------------
include Win32Lib.ew

constant Win = create(Window, "Test Icon", 0, 220, 60, 360, 480, 0)

setIcon( Win, "1083.ico" )

WinMain(Win, Normal)
------------------------------

-- Brian

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu