cannot receive message? 
Author Message
 cannot receive message?

In my thread function I postmessage
then In mainfrm.cpp OnMessage(WM_USER_MESSAGE,OnT)
but I can't  run OnT()-->no responds
why mainframe cannot receive message


Sun, 12 Aug 2001 03:00:00 GMT  
 cannot receive message?

Quote:

> In my thread function I postmessage
> then In mainfrm.cpp OnMessage(WM_USER_MESSAGE,OnT)
> but I can't  run OnT()-->no responds
> why mainframe cannot receive message

It works if you do it right.  Why don't you show us some code?

Three parts have to be right to make it work: the function prototype in the h file, the ON_MESSAGE macro, and the function definition itself.  Show us those three lines and maybe someone can help.



Sun, 12 Aug 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Hidden Window in Unmanaged DLL not receiving messages.

2. Receiving windows messages

3. Receive message from private queue in Windows Service

4. how does a child window receive messages (api)

5. CWindowImpl not receiving messages

6. ATL Window not receiving message post?...

7. Windowsless ATL Control doesn't receive MouseDown message

8. Not receiving On...Click() messages in ATL Composite Control

9. How ro receive ADORecordset from MSMQ Message?

10. Message receiving.Please help

11. Memory Leak per message received.

12. Message receiving. Please help

 

 
Powered by phpBB® Forum Software