Re: Another Bleeding Edge of Win32Lib
- Posted by Robert Craig <rds at ATTCANADA.NET> Dec 25, 1999
- 702 views
------=_NextPart_000_005F_01BF4EE8.4A160700 charset="iso-8859-1" David Cuny writes: > Can anyone give me a clue how to *create* icons within > Windows programs? The new version of Euphoria allows > the executable to have an icon, but doesn't assign an icon > to the window that's created. All the documentation that I've > got seems to relate only to loading icons from resource files, > not creating them in memory. The icon stored in exw.exe has the name "exw". (I should document that somewhere.) You can get a handle to this icon with: atom icon_handle icon_handle = c_func(LoadIcon, {instance(), allocate_string("exw")}) For the next release, I've changed demo\win32\window.exw to store the icon handle in the window class structure: poke4(wndclass + hIcon, icon_handle) poke4(wndclass + hIconSm, icon_handle) If you overwrite the icon with your own icon, during binding, it will still have the name "exw". The new window.exw is attached. I hope that answers part of your question. I know that icons have a different format than bitmaps. I don't know off-hand how to create them in memory. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com ------=_NextPart_000_005F_01BF4EE8.4A160700 name="Window.exw" Content-Transfer-Encoding: quoted-printable