Setting the windows icon
- Posted by Ad Rienks <kwibus at ZONNET.NL> Oct 04, 2000
- 352 views
------=_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> </DIV> <DIV>As there are so many new features in Win32Lib now, and because I = have been=20 'away' from Euphoria programming for 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> </DIV> <DIV>------------------------------</DIV> <DIV>include Win32Lib.ew</DIV> <DIV> </DIV> <DIV>constant Win =3D create(Window, "Test Icon", 0, 220, 60, 360, 480, = 0)</DIV> <DIV> </DIV> <DIV>object junk</DIV> <DIV> </DIV> <DIV>constant i1083 =3D addIcon(extractIcon("1083.ico"))</DIV> <DIV> </DIV> <DIV>junk =3D sendMessage(Win, WM_SETICON, 0, i1083)</DIV> <DIV> </DIV> <DIV>WinMain(Win, Normal)</DIV> <DIV>----------------------------------</DIV> <DIV> </DIV> <DIV>Which is the proper way to do this?</DIV> <DIV> </DIV> ------=_NextPart_000_0009_01C02D96.C96ECCC0--