Another error: IDI_ICON1  is not defined in FL/*.h , how can I use a new 
defined icon

> Thank you to your reply.
> I am using 1.19 on windows. I developing an application to operate on MS 
> Access DB , so MFC is used. when I try to use the code "icon((char 
> *)LoadIcon(fl_display,MAKEINTRESOURCE(IDI_ICON1)));" , I have to include 
> FL/x.h ,in turn ,it inclue windows.h . But compiler report an error " MFC 
> apps must not #include <windows.h>" .
> So , i still failed to assign icon to my window.
>
> > Hi Ian,
> >
> > > Marc, is that on X that the transparency fails? Or on win32 also?
> > Only on X- but that probably has something to do with the fact that under
> > Windows, I use
> >
> > window->icon((char *)LoadIcon(fl_display,MAKEINTRESOURCE(IDI_ICON1)));
> >
> > whereas under Linux I use
> >
> > XpmCreatePixmapFromData(fl_display,DefaultRootWindow(fl_display),(char *
> > *)hd24connect_xpm, &p, &mask, NULL);
> > window->icon((char *)p);
> >
> > (for obvious reasons that DefaultRootWindow and XpmCreatePixmapFromData
> > are not available under Windows).
> >
> > Probably I'm missing something with regards to the mask, I just don't know
> > what.
> >
> > Best,
> > Marc
> >
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to