Windows Message Handling
-
One of the thread in my application has consumed some windows messages which are aimed to my controls (my own defined control). Can anyone give me a suggestion what I should do to solve the problem?
-
One of the thread in my application has consumed some windows messages which are aimed to my controls (my own defined control). Can anyone give me a suggestion what I should do to solve the problem?
What kind of messages would that be? User defined such as "
WM_USER + X
" or "WM_APP + 1
"? If so: read this article[^] by Joe Newcomer. Hope this helps -- Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
-
What kind of messages would that be? User defined such as "
WM_USER + X
" or "WM_APP + 1
"? If so: read this article[^] by Joe Newcomer. Hope this helps -- Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
Thanks Roger. I would read the article. It is the standard keydown message. I select an item in my list control, then pressed the arrow key up or down, nothing happened in the list control, the selected item has not been changed. I used Spy++ to check and found out that the list control has never recied the key up och down message. The thread which holds the dialog window has recieved the messages, it seems that the thread has consumed the message and never send it to the control. I just wonder why and how I can solve the problem. BR /Chibi
-
Thanks Roger. I would read the article. It is the standard keydown message. I select an item in my list control, then pressed the arrow key up or down, nothing happened in the list control, the selected item has not been changed. I used Spy++ to check and found out that the list control has never recied the key up och down message. The thread which holds the dialog window has recieved the messages, it seems that the thread has consumed the message and never send it to the control. I just wonder why and how I can solve the problem. BR /Chibi
What does your thread's message loop look like?