First time here? Check out the FAQ!
You need to create a thread loop, initialise the windows in the thread (best just before the loop starts) and update you