I'm using VC++ v5.0 and MFC. Here is my situation. Within class "A", I
create an instance of class "B." I then call a member function of object B
and it returns immediately but continues to operate in the background. When
object B finishes, I want it to send a message back to object A. I can't
figure out how to use PostMessage (or PostThreadMessage) correctly.
Neither class is derived from CWinThread. There are derived from CWnd. I'm
using the ON_MESSAGE message handler to trap the message. If I call
PostMessage from within the same class as the ON_MESSAGE handler, it works.
But I can't get it to work when call PostThreadMessage from the child
object. When I use PostThreadMessage, how can I get the idThread?
Email address modified to prevent spamming.
Remove the "$" in front of address before replying.