2009/8/19 TSalm <[email protected]> > Hi, > > Is there a way to use this function with a FLTK widget : > > http://msdn.microsoft.com/en-us/library/ms648064(VS.85,printer).aspx<http://msdn.microsoft.com/en-us/library/ms648064%28VS.85,printer%29.aspx> >
What do you want to achieve? If it's to draw an icon, you can use the standard FLTK method: "Setting the Icon of a Window FLTK currently supports setting a window's icon *before* it is shown using the Fl_Window::icon() method. void Fl_Window::icon(char *) Sets the icon for the window to the passed pointer. You will need to cast the HICON handle to a char * when calling this method. To set the icon using an icon resource compiled with your application use: window->icon((char *)LoadIcon(fl_display, MAKEINTRESOURCE(IDI_ICON))); You can also use the LoadImage() and related functions to load specific resolutions or create the icon from bitmap data." Please let me know if that's what you want. Thanks. -- Isaque Galdino "sic enim dilexit Deus mundum ut Filium suum unigenitum daret ut omnis qui credit in eum non pereat sed habeat vitam aeternam" -- Iohannes 3:16 _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

