Hi,

I have a command handler on CDocument derived class. This function creates a thread and terminates. When the thread function reaches a certain point, I would like to post a message so that one of other CDocument member function will be invoked.

The problem is, CDocument doesn't own a window and therefore I can't call PostMessage. (CDocument doesn't have a member function PostMessage)

How can I accomplish this?

Thanks
Jim