 <p>No, your code is not threadsafe assuming that the window handle (<code>FWnd</code>) is created in main (GUI) thread. A standard VCL approach is to call all GDI functions in GUI thread, via <code>Synchronize</code> or <code>Queue</code> methods of <code>TThread</code> class.</p>