PostMessage is not received.
-
I need some tips on how to find out why this is happening. I got a workerthread. And when it has added an item to an queue, I post a message to mainframe. (the message has been created with ::RegisterWindowMessage(...) ) using PostMessage( hWndMainFram, MY_MESSAGEID , 0 , 0 ); And in CMainFrame::PreTranslateMessage(...) I trap the message and I pick up the item from the queue, This all work very well. Except in one situation. If the user are in a menu. If an menu is shown at the same time the postmessage are sent from the workerthread, The message is never recieved in CMainFrame::PreTranslateMessage(...) Anyone got any ide on how to fix it. - Mathias S.
-
I need some tips on how to find out why this is happening. I got a workerthread. And when it has added an item to an queue, I post a message to mainframe. (the message has been created with ::RegisterWindowMessage(...) ) using PostMessage( hWndMainFram, MY_MESSAGEID , 0 , 0 ); And in CMainFrame::PreTranslateMessage(...) I trap the message and I pick up the item from the queue, This all work very well. Except in one situation. If the user are in a menu. If an menu is shown at the same time the postmessage are sent from the workerthread, The message is never recieved in CMainFrame::PreTranslateMessage(...) Anyone got any ide on how to fix it. - Mathias S.
Hi Mathias, I dont know am i correct or not. But this link may help you. http://support.microsoft.com/kb/126874[^] thanks. Nitheesh