> > > I'm creating an program with Direct3D that requires me to=20 > > have viewports. Each viewport needs a Win32 handle (HWND). I=20 > > know that fl_xid(const Fl_Window*) will get me one for a=20 > > 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=20 > > HWND hw =3D fl_xid(this); > > And (so far!) that seems to work just fine.=20 > 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 SS= > 14 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. > ******************************************************************** >
Thanks. It's good to know that it IS possible. I'll give it a go soon. Thanks. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

