Adding wxWidgets to existing app
Vadim Zeitlin
vadim at wxwidgets.org
Sat Jan 5 16:53:55 PST 2008
On Sun, 6 Jan 2008 00:49:13 +0000 (UTC) Richard <legalize+jeeves at mail.xmission.com> wrote:
R> >[...] If you do need to have both SDL and wx event loops in the
R> >same program then the simplest way to manage it is probably indeed to use
R> >different threads. In this case you must do all wxWidgets operations
R> >(starting from instantiating wxApp-derived object) from one thread only.
R>
R> Will that work under Windows?
Yes, with care.
R> I thought all the GUI stuff had to be done from the same thread under
R> Windows.
No, GUI stuff can be done from any thread but only with the windows and
other GUI objects created by this thread itself. I.e. as long as each GUI
thread manages its own top level window it works.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list