Hi all,

I know how to load an icon that is a resource in Visual Studio:

HINSTANCE hInstance = GetModuleHandle(NULL);
o->icon((char*)LoadIcon(hInstance,MAKEINTRESOURCE(ICON_ID)));

But how can I load the (bitmap, or anything else) image of a Widget in a 
similar way?
I know I can do

HBITMAP b_map = LoadBitmap(hInstance,MAKEINTRESOURCE(BITMAP_ID));
But how do I get the bitmap in a format which is accepted by Widget::image ?
Do I have to make an FLTK Image first? If so, how?

Any help would be much appreciated!
Thanks.

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

Reply via email to