>
> > It's not a problem since it's a Win32 specific application.
>
> OK, if you are dead-set on going this way, it is pretty easy - see the
> "Operating System Issues" section of the fltk docs.
>
> But basicaly, by the time you are inside your widget's draw() method,
> fltk will have set up these values for you:
>
> extern HINSTANCE fl_display;
> extern HWND fl_window;
> extern HDC fl_gc;
> COLORREF fl_RGB();
> HPEN fl_pen();
> HBRUSH fl_brush();
>
>
> Of these, the only one you need is the HDC, which will appear as fl_gc,
> so you can simply do:
>
>
> My_widget::draw()
> {
> // some stuff
>
> DrawIcon(fl_gc, X, Y, hIcon);
>
> // other stuff
> }
>
>
>
> > In fact, it's because I must display an Icon getting from the=20
> > function :
> > GetClassLong( hWnd , GCL_HICONSM );
> > (=20
> >=20
> > This function return an handle to a win2 icon...
>
> Well, that's one way to do that... Still not clear what you are trying
> to achieve, though...
>
Thanks you Ian and Albrecht !
In a training purpose, I'm triing to write a small app to manage my Windows,
and I need to display Icons of each Windows.
A screenshoot :
http://images.tsalm1.multiply.com/image/1/photos/1/600x600/1/Sans-titre.png?et=gFYUKM%2C7wL7Um9lu1ScqCw&nmid=277080091
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk