Frank Eory schrieb:
> Is the .RES supposed to be the
> input to the resource compiler with a .O as an output?

No, you must use the msys ressource-compiler "Winres" (you get it on 
MinGW-Site) to create the .a-file. To set the apps icon, you must do the 
following steps:

1. Create the ressource "Icon.res" (or use any name you like ;o)

2. Compile  the static lib "windres Icon.res libicon.a". It is important 
to use the prefix "lib" for the name, but to include it as "icon".

3. Link the library to your project

4. Load the icon from within the app, using common windows-style:

#define IDI_MAIN        111     // Icon-Ressource
char* pIcon= (char *)LoadIcon(fl_display, MAKEINTRESOURCE(IDI_MAIN));

5. Final step: Assign the icon to the Fl_Window before first calling show:
Fl_Window Window;
if (pIcon) Window.icon(pIcon);
Window.show();

Now the window should show the icon from the static libicon.a.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to