This may be API 101, but I am totally confused.....
Callbacks, (or even Subclassing), if my procedure handles the event, then I set Function = whatever the reply is supposed to be for the function....But farther down I set any unhandled functions to WindowProc, or MdiWindowProc or whatever....which may stick me in a "Blocking" call and I do not know it
on the other hand, if I handle the event and exit the function, I could also get the same because I should not have exited the function.
So since I am completely confused....what is the proper way to "Eat a message"? am I supposed to check if my function handled it, and what the message was before allowing or disallowing windows to handle what I did not handle?
sorry if 101....but been a long week
Callbacks, (or even Subclassing), if my procedure handles the event, then I set Function = whatever the reply is supposed to be for the function....But farther down I set any unhandled functions to WindowProc, or MdiWindowProc or whatever....which may stick me in a "Blocking" call and I do not know it
on the other hand, if I handle the event and exit the function, I could also get the same because I should not have exited the function.
So since I am completely confused....what is the proper way to "Eat a message"? am I supposed to check if my function handled it, and what the message was before allowing or disallowing windows to handle what I did not handle?
sorry if 101....but been a long week
Comment