Problem with PostThreadMessage with date time activex control (Windows XP MFC application)
Posted on 2007-07-26
I'm getting a problem with a PostThreadMessage call within a MFC application.
The PostThreadMessage receive handler is implemeneted in the application class(CWinAPP derived class) with ON_THREAD_MESSAGE handler as :
The PostThreadMessage is invoked from a different thread on a basis of certain events and this scenario works except one case:
The application is build in with a datetime activex control in a dialogbox within the same application. If I open this activex control at the same time, when the PostThreadMessage happens, the receive handler doesn't get executed. Also I have checked the return value of the
PostThreadMessage call and it returns without any error message. I guess the message is getting posted in the thread queue, for some reason it is not being consumed during the activex control runtime?
Appreciate any inputs on this...