Neil Hodgson wrote: > Cantankerous Old Git: > >> Problem 1: >> If I have another thread call DestroyWindow after a delay, it gets an >> error "permission denied". I really can't see why. > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/destroywindow.asp > > > > """A thread cannot use DestroyWindow to destroy a window created by a > different thread.""" > > Posting WM_CLOSE to the window will probably work. If not, then send > an application defined message to the window and handle it by calling > DestroyWindow. > > Neil
Sorry for the delay in answering. That put me on the right track, thanks. I post a custom message, and the handler calls DestroyWindow. The Cog -- http://mail.python.org/mailman/listinfo/python-list