Windows message pump problems

Neil Hodgson nyamatongwe+thunder at gmail.com
Tue Aug 16 20:04:15 EDT 2005


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



More information about the Python-list mailing list