> I'm creating an program with Direct3D that requires me to
> have viewports. Each viewport needs a Win32 handle (HWND). I
> know that fl_xid(const Fl_Window*) will get me one for a
> window, but it won't work for a child to the window. Is this possible?
What I do is create the "viewports" as widgets derived from Fl_Window
(note that's a fltk single window, not Fl_Double_Window, though I'm not
sure it really matters) and then in the constructor for the viewports I
do
HWND hw = fl_xid(this);
And (so far!) that seems to work just fine.
Used this approach for a number of things (e.g. video capture, video
streaming etc.) with success, so I guess it will work for you too.
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk